Guest WILDPACKET Posted August 24, 2007 Posted August 24, 2007 I am having a problem with this bat file. schtasks /create /RU system /SC MONTHLY /MO first /D TUE /ST 01:30:00 /TN Reboot_PC /TR "shutdown -r -f -t 60 -c "IT is shutting down your computer"" The above creates a scheduled task and runs once a month at the specified time. If I add the comments like thi ITISSHUTTINGDOWNYOURCOMPUTER is works. I want to add spaces. Advise Please. Thanks
Guest Mathieu CHATEAU Posted August 24, 2007 Posted August 24, 2007 Re: Shutdown - [WP] Hello, you need to add more " schtasks /create /RU system /SC MONTHLY /MO first /D TUE /ST 01:30:00 /TN Reboot_PC /TR """"shutdown -r -f -t 60 -c "IT is shutting down your computer"""" You may had search on this newsgroup. Pegasus posted the answer two days ago... -- Cordialement, Mathieu CHATEAU http://lordoftheping.blogspot.com "WILDPACKET" <WILDPACKET@discussions.microsoft.com> wrote in message news:07E91195-13C2-41E7-86BA-4D514AF82050@microsoft.com... >I am having a problem with this bat file. > > schtasks /create /RU system /SC MONTHLY /MO first /D TUE /ST 01:30:00 /TN > Reboot_PC /TR "shutdown -r -f -t 60 -c "IT is shutting down your > computer"" > > The above creates a scheduled task and runs once a month at the specified > time. > > If I add the comments like thi > ITISSHUTTINGDOWNYOURCOMPUTER is works. > > I want to add spaces. > > Advise Please. Thanks
Recommended Posts