目前,我使用vbs
这样的Windows Task Scheduler
文件向. vbs
添加了 <Actions Context="Author">
<Exec>
<Command>cscript</Command>
<Arguments>"c:\users\owner\desktop\test.vbs"</Arguments>
</Exec>
</Actions>
代码
vbs
工作正常。这会引用该文件。它类似于从command line
cscript "c:\users\owner\desktop\test.vbs
vbs
有没有办法直接将test.vbs
写入Windows任务调度程序而不在驱动器上保留<Actions Context="Author">
<Exec>
<Command>cscript</Command>
<Arguments>"msgbox ""hi"""</Arguments>
</Exec>
</Actions>
文件?
我试过这个
{{1}}
它不起作用。 有没有办法直接将vbs写入命令行?