|
Answer» hey all,
Has anyone used the SCHTASKS command before?? I'm trying to create a scheduled task but I'm getting error's
my syntax reads;
Code: [Select]SCHTASKS /Create /U ADMINISTRATOR /P password /SC once /TN %email% /TR "C:\ftpfeed\schbatch.bat" /ST %APtime%
but this produces,
"Invaild syntax. Cannot specify USER name without specifying system name."
I've tried ADDING "/S LAPTOP" (laptop is my computer name) but this hasn't made any difference.
Anybody got any ideas??
Cheers in advance!!
not to worry..
I missed the /RU and /RP swicthes, for ranas and runas password.
Working well now!!
|