如何在Windows任务计划程序中包含vbs代码?

时间:2014-08-11 03:54:30

标签: vbscript

目前,我使用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写入命令行?

0 个答案:

没有答案