A scheduled task does not run as expected if a command-line argument is enclosed in quotation marks on a computer that is running Windows Server 2008 or Windows Vista SP1
Consider the following scenario:
- You create a scheduled task on a computer that is running Windows Server 2008 or Windows Vista Service Pack 1 (SP1).
- One or more command-line arguments in this scheduled task are enclosed in quotation marks.
In this scenario, the scheduled task does not run as expected. Additionally, a value of 0×1 appears in the Last Run Result column.
For example, assume that you create a scheduled task by running the following command-line argument:
schtasks /create /tn "Test Scheduled Task" /tr "c:\temp.bat \"1-Jan-70 8:00:00\"" /sc daily /st 03:15:00 /ru System
The scheduled task fails after it starts at 03:15. However, if you delete the quotation marks around “1-Jan-70 8:00:00,” the scheduled task runs successfully.
Note: The issue does not occur in Windows Vista or in Windows Server 2003.
For more information on this issue, including potential causes, workarounds, and resolutions, see: Microsoft KB Article KB951246.

Start
About
FAQ
Blogroll
Shop
Tips and Tricks
Windows Updates
Hotfixes
Keyboard Shortcuts
Vista's Services
Vista's Commands
Product Reviews
Glossary
Videos
Web Links

Comments
There are no comments yet...Come on, share your thoughts!
Leave a Comment