0
votes
2answers
117 views

Can not schedule a batch file to run at startup [duplicate]

I'm trying to schedule a batch file to run at start up. Here is my command: schtasks /create /tn test /tr c:\simple.bat /sc onstart simple.bat only writes the current time to a file: time /t > ...
1
vote
2answers
5k views

How do I get a .bat file to run in Task Scheduler at PC Startup?

Alright so I have been reading through the various answers on Super User for this question and no one has seemed to actually post a way of running a .bat file in Task Scheduler at PC startup. I would ...
0
votes
1answer
275 views

Scheduled task returns 0xFF, but works ok

The batch file converts mpg to avi and runs on a schedule. Although the batch works ok from the schedule, Scheduled Task returns the 0xff message. Running manually, it displays an exit code of 0. I ...
0
votes
0answers
579 views

Task Scheduler (run whether user is logged on or not)

I'm having a problem with scheduling a task in Windows 7 I m creating a task which is mapped to a bat file to execute, here is my .bat file : cd "C:\soft\" Start excel "" "AD Auto Run.xlsm" its ...
1
vote
1answer
418 views

Task Scheduler - Batch script to run on condition that another task has completed

In Windows Server 2008 R2, I want to set up a Scheduled Task to run a batch script on the following condition -The task should only run once another task, that also runs a batch script, has ...
0
votes
3answers
912 views

Windows .bat fails when running from Scheduled tasks; runs fine when running from command line

I am trying to start a virtual machine via a batch file. The .bat file runs fine when I run it from the Windows command line. But when I run it from scheduled tasks, it exits with error code 1. I ...
0
votes
1answer
332 views

Is there a way to run a bat file whenever network connected?

I want to automatically pass the firewall whenever the network connected (WIFI and LAN), I have a bat file to do this, but every time I need to run it manually, so is there a way to run this bat file ...
4
votes
2answers
1k views

Selectively deleting system scheduled tasks

Windows 7 box has a list of scheduled tasks - > Default Windows tasks + Certain custom tasks that all start with a certain string. Previous code deleted all tasks with the command: schtasks /Delete ...
1
vote
0answers
1k views

Is it normal for scheduled task behaviour to differ from running the batch file manually?

I have a windows service that I need to stop and start every 30 minutes using a Windows Scheduled Task. The service itself can be manually stopped via the Services management console (right-click -> ...
0
votes
1answer
523 views

Schtasks can't run .bat file in windows server 2003

I have a problem with running a .bat file in windows 2003. If I change the user to Admin, I can run it without any problem, but with SYSTEM as user, it will not run. The command is: SCHTASKS /Create ...
1
vote
2answers
1k views

Running batch file through a service

I'm trying to schedule a batch file to run through a third party application, however the output file doesn't get created in the directory. If I run the .BAT file from the command line, it works ...
0
votes
2answers
1k views

windows 7 task schedule / mysqldump

Ive created a batch file to create a dump of a database and save it in a file with the current date as part of the file name. The batch file works brilliantly and all the data is saved correctly. ...
1
vote
2answers
6k views

Running bat file using Windows scheduler

I wanted to run a .bat file in Windows task scheduler, so I opened it, added a new task, browsed to the bat file, and... nothing happened. So I changed the timing to see if it'll run, and it didn't. ...