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.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use double quotes for the path, like you would do it on the command line.
As a VBScript string, this looks like: