|13 Sep 2013||#1|
| || |
How to start schtasks to run batch file
I've been tring to make a scheduld task with schtask as system, i mannaged to do it and to task is succesfully made but there is a problem, the task need to run a batch file and it dosent doing it this is the command to add the task as SYSTEM
SCHTASKS /Create /SC daily /ST "17:00" /TN Task1 /TR "c:\myfolder\script.bat" /RU "SYSTEM"
after that i get this message:SUCCESS: The scheduled task "Task1" has successfully been created.
and the batch file code is:
echo change the button on %TIMESTAMP% > c:\myfolder\log.txt
and what is happing on 17:00 is nothing!
notepad dosent open, there is no Hello message and the mouse button are the same
the only thing that happend is in c:\myfolder\log.txt there is a text: change the button on 17:00
what is worng?
when i try to make the task as admin user it working
but i need it to be system beacuse in our company there only few computers and all the workers use the same computers with a username and password so i want it to task not realeted to any user so every user that use the computer can run it.
i need your help guys...
there is a way to start a task when getting a ping? so when someone will send ping to the computer it will start a scheduled task?
|My System Specs|
|Similar help and support threads for2: How to start schtasks to run batch file|
|How to run a batch file at logoff & some batch scripting help please||Backup and Restore|
|Batch file: how to start a program [sidebar.exe]||Performance & Maintenance|
|Batch program to fix 'File did not start with JPEG marker'||Music, Pictures & Video|
|Batch file to start a service if the service is not running||General Discussion|
|Batch File that grabs file names from folder to insert into batch file||General Discussion|
|batch file open file for program in the startup folder||General Discussion|
|How to create a batch file that will move files based on the file type||General Discussion|
|Our Sites ||Site Links ||About Us ||Find Us |
© Designer Media Ltd
All times are GMT -5. The time now is 10:50 PM.