Re: schtasks

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Of course you cannot create two tasks with the same name,
same as you cannot have two children with the same name
in the same family! Call your tasks Gogo1, Gogo2, Gogo3.


"TBoon" <allblacks15@xxxxxxxxxxx> wrote in message
news:uSxG$0CKHHA.4928@xxxxxxxxxxxxxxxxxxxxxxx
You cannot create 2 task with the same name.
Notepad is just an example.

"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:efuPhN$JHHA.2140@xxxxxxxxxxxxxxxxxxxxxxx
Both commands work fine. What makes you think that they
do not work? What error message do you see?

You should note that scheduled tasks are meant to be run
in the background. Scheduling notepad.exe is not a good idea,
since notepad by its very nature is an interactive program. If
you wish to test schtasks.exe then you should use this command:

schtasks /create /tn "Gogo" /tr %SystemRoot%\test.bat /sc weekly /mo 2
/d
FRI

and place this line into c:\%SystemRoot%\test.bat:

echo %date% %time% %UserName% >> c:\test.log


"TBoon" <allblacks15@xxxxxxxxxxx> wrote in message
news:%231vYzv%23JHHA.536@xxxxxxxxxxxxxxxxxxxxxxx
schtasks /create /tn "Gogo" /tr %SystemRoot%\system32\notepad.exe /sc
monthly /mo 3
schtasks /create /tn "Gogo" /tr %SystemRoot%\system32\notepad.exe /sc
weekly
/mo 2 /d FRI

Show me your working command.

"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:uLBFzqcJHHA.4960@xxxxxxxxxxxxxxxxxxxxxxx
Of course it can - I've done it dozens of times. Let's have
a look at your command!


"TBoon" <allblacks15@xxxxxxxxxxx> wrote in message
news:OxvvBfcJHHA.3872@xxxxxxxxxxxxxxxxxxxxxxx
Done that, don't think it can be done...

"Pegasus (MVP)" <I.can@xxxxxxx> wrote in message
news:uqV7JAcJHHA.3872@xxxxxxxxxxxxxxxxxxxxxxx

"TBoon" <allblacks15@xxxxxxxxxxx> wrote in message
news:uyuWn1bJHHA.536@xxxxxxxxxxxxxxxxxxxxxxx
Hi there,

Anyones know how to create an OS Scheduled Task with mutiple
schedules
using
the command "schtaks" instead of GUI?



Type schtasks.exe /? to see how it's done.
Be careful about the spelling - it's not "schtaks".














.



Relevant Pages

  • Re: schtasks
    ... Notepad is just an example. ... What error message do you see? ... You should note that scheduled tasks are meant to be run ... Show me your working command. ...
    (microsoft.public.win2000.general)
  • Re: schtasks
    ... avoids me suggesting solutions that you have already ... Notepad is just an example. ... You should note that scheduled tasks are meant to be run ... Show me your working command. ...
    (microsoft.public.win2000.general)
  • Re: Scheduled Tasks
    ... How To Troubleshoot Scheduled Tasks in Windows XP ... However, is it possible that the problem isn't with the task running, but that the program doesn't update the usage count when run from the command line? ... Copy the run command from your scheduled task and paste it into the Run box on the start menu and click OK. ...
    (microsoft.public.windowsxp.general)
  • Re: schtasks
    ... Call your tasks Gogo1, Gogo2, Gogo3. ... Notepad is just an example. ... You should note that scheduled tasks are meant to be run ... Show me your working command. ...
    (microsoft.public.win2000.general)
  • Re: Cant schedule a batch file to run in the XP Pro Scheduler
    ... >> a shortcut on the desktop or from the command window directly. ... >> does NOT run fine is when I try to call the backup.bat batch file ... >> from the Windows XP task scheduler (Control Panel, Scheduled Tasks). ...
    (microsoft.public.windowsxp.perform_maintain)