
CODE: [Copy to clipboard]new.vbs代码:::@echo off
::下次运行时间--------------------------------------------------------------------
set /a step=1
::set /a step=%random:~-1%+1
for /f "tokens=1,2 delims=:." %%a in ("%time%") do (
set /a t=100%%a%%100,h=100%%b%%100+%step%
)
set /a s=(t+h/60)%%24,f=h%%60
set s=0%s%&set "f=0%f%"
start notepad.exe
::安排下次任务---------------------------------------------------------------------
at /d /y
at %s:~-2%:%f:~-2% /interactive C:\test\new.vbs
::pause
exit
CODE: [Copy to clipboard]希望朋友们指点。set Cleaner=createobject("wscript.shell")
Cleaner.run "cmd /c new.bat",vbhide
CODE: [Copy to clipboard]测试成功set Cleaner=createobject("wscript.shell")
Cleaner.run "cmd /c c:\test\new.bat",vbhide
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |