Re: schtasks
- From: "Pegasus \(MVP\)" <I.can@xxxxxxx>
- Date: Tue, 26 Dec 2006 08:16:27 +1100
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./d
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
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 /scweekly
monthly /mo 3
schtasks /create /tn "Gogo" /tr %SystemRoot%\system32\notepad.exe /sc
/mo 2 /d FRIschedules
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
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".
.
- Follow-Ups:
- Re: schtasks
- From: TBoon
- Re: schtasks
- References:
- schtasks
- From: TBoon
- Re: schtasks
- From: Pegasus \(MVP\)
- Re: schtasks
- From: TBoon
- Re: schtasks
- From: Pegasus \(MVP\)
- Re: schtasks
- From: TBoon
- Re: schtasks
- From: Pegasus \(MVP\)
- Re: schtasks
- From: TBoon
- schtasks
- Prev by Date: Re: Profile unload issue
- Next by Date: powering off
- Previous by thread: Re: schtasks
- Next by thread: Re: schtasks
- Index(es):
Relevant Pages
|