| | |
scheduled tasks puzzle
Thread Solved
![]() |
•
•
Join Date: Jan 2009
Posts: 2
Reputation:
Solved Threads: 0
When I type in the run box of the scheduled tasks wizard,the job completes successfully,but if I used the windows command prompt instead and I typed the following:
I run into all sorts of syntax errors.It is very cofusing indeed! The path to the executable doesn't contain spaces.There is that mandatory space between the parameters and the executable,and I have tried quotes in all sorts of combinations but to no avail. Why is the CLI playing up?
The check box "only if I am logged on" is useless because even if it is not checked and you log out after setting the task the GUI s for the applications[that are in the schtasks list] would be invisible to you when you log in! Is there a work around for this annoyance?
c:\windows\system32\taskkill.exe /im somename.exe /t
schtasks /create /sc once /sd 01/01/2009 /st 16:16:16 /ru confused /rp bigheadache /tn sametask /tr c:\windows\system32\taskkill.exe /im somename.exe /t
I run into all sorts of syntax errors.It is very cofusing indeed! The path to the executable doesn't contain spaces.There is that mandatory space between the parameters and the executable,and I have tried quotes in all sorts of combinations but to no avail. Why is the CLI playing up?
The check box "only if I am logged on" is useless because even if it is not checked and you log out after setting the task the GUI s for the applications[that are in the schtasks list] would be invisible to you when you log in! Is there a work around for this annoyance?
•
•
Join Date: Jan 2009
Posts: 2
Reputation:
Solved Threads: 0
schtasks /create /sc once /sd 01/01/2009 /st 16:16:16 /ru confused /rp bigheadache /tn sametask /tr c:\windows\system32\taskkill.exe /im somename.exe /t should be typed as:
because whatever comes after /tr has to be a string and by using quotes we are telling the processor the whole expression is a string!
•
•
•
•
schtasks /create /sc once /sd 01/01/2009 /st 16:16:16 /ru confused /rp bigheadache /tn sametask /tr "c:\windows\system32\taskkill.exe /im somename.exe /t"
![]() |
Similar Threads
- Help with automatic update problem and more (Viruses, Spyware and other Nasties)
Other Threads in the Windows NT / 2000 / XP Forum
- Previous Thread: Active Desktop Recovery - Fixed By me..
- Next Thread: Windows 2003 Server - Can't change workgroup name
| Thread Tools | Search this Thread |
.net 64bit 2007 2010 a.exe activedirectory address android application appstore black blue bsod bulletin canonical chinese codeplex combofix crash cursor deployment deployments desktop desktops dns domain dotnetnuke drive eartlink error errors explorer fax features fontmanagers fonts format framework freeze hardware home interoperability laptop laptops lcd linux login mac markshuttleworth memory microsoft monitor motionle1600 netbooks novell nvidia opensource operatingsystems options osinstallationproblem osx outlook palm printer product program proxy raid reformat remotedesktop replacingraiddrive retail retrieve screen security server. sharepoint simplifiedchinese sitetositevpn slowperformance sp3 studios technology ubuntu update upgrade videodrivers videogames virus vista visual vpn win win32/heur windows windows7 windowsxp windowsxpnotstartingup. xp xpde





