to run schtasks in windows xp using vb script [closed]
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
开发者_运维技巧 Improve this questioni 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"""
精彩评论