0
votes
2answers
177 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
95 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 ...
2
votes
2answers
282 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
924 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
295 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
911 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. ...