开发者

to run schtasks in windows xp using vb script [closed]

开发者 https://www.devze.com 2023-03-15 17:41 出处:网络
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post.
Closed. This question needs details or clarity. It is not currently accepting answers.

Want to improve this question? Add details and clarify the problem by editing this post.

Closed 8 years ago.

开发者_运维技巧 Improve this question

i try to run schtasks using vb script. it runs fine when the path name is without space(/TR C:\ABC.exe) but when i give path name as "/TR C:\Documents and Settings\All Users\Desktop\ABC.exe",i.e with space. the task is not created.


Use double quotes for the path, like you would do it on the command line.

As a VBScript string, this looks like:

"/TR ""C:\Documents and Settings\All Users\Desktop\ABC.exe"""
0

精彩评论

暂无评论...
验证码 换一张
取 消