![]() |
求如何创建bat批处理文件在预定日期执行动作
求如何创建bat批处理文件在预定日期执行动作
www.dimcax.com 求如何创建bat批处理文件在预定日期执行动作 我想实现到某一时刻实现某动作,但是不知道如何创建批处理文件。 (defun c:cpuid (/ str) (setq str "set objswbemobject = getobject(\"winmgmts:win32_processor.deviceid='cpu0'\") ret = objswbemobject.processorid") (if (not *wsc)(setq *wsc (vlax-create-object "scriptcontrol"))) (vlax-put *wsc 'language "vbs") (vlax-invoke *wsc 'executestatement str) (setq id (vlax-invoke *wsc 'eval "ret")) ) 既然可以把vbs移植进来,肯定可以实现批处理的移植。bat跟lisp结合起来不是更好吗,网上很多批处理高速查找所有盘并找到 某文件,如果程序里面写上时间函数,然后到时间后让批处理运行把我想删除的文件自动删除掉。 (vlax-get-or-create-object "excel.application") 为什么(vlax-get-or-create-object "notepad.application") 不可以? d 在程序开头加个时间判断即可 我的意思是在lisp 代码里面如何创建del.bat文件. 时间函数已经写好了! 比如我向在 d |
所有的时间均为北京时间。 现在的时间是 06:36 AM. |