Re: schtasks

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



I already know tat.

Thanks anyway. Hope to find a workaround...

"Pegasus (MVP)" wrote:

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
    ... Notepad is just an example. ... You should note that scheduled tasks are meant to be run ... since notepad by its very nature is an interactive program. ... 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: Outlook Express Blocked Senders list
    ... still remember how to work from a command line. ... Jim Pickering, MVP, Windows Mail Apps ... read with Notepad which has been the common method of getting a text file ...
    (microsoft.public.windows.inetexplorer.ie6_outlookexpress)
  • Re: Sophisticated(!) copying in DOS
    ... Open NOTEPAD and put in the contents. ... If you are using word or wordpad or wordperfect to make the exclude file, ... Trust me that I have spent hours - in batch file and just typing commands in at the command prompt - and no matter what I do, ... You quote generic commands that have some character misplaced, and then you say that this was not the real command anyway. ...
    (microsoft.public.windowsxp.general)