![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| 32 bit Vista home basic | Scheduler does not run batch file and can't run as an administrator I have a batch file that has a series of xcopy commands in it that runs fine interactively (just double click on the file in Windows), but not in the scheduler (set to run as an administrator). It instantly quits. You can see the DOS box for a fraction of a second, then it disapears. The result code is (0X1). If I run it interactively "as an administrator" (right click on the filename /run as an administrator) I get the same type of result, the DOS box comes up and disappears instantly. I put a "pause" statement in the first line of the batch file, but the DOS box still just flashes on the screen and disappears. Can anyone tell me what is going on? |
My System Specs![]() |
| | #2 (permalink) |
| 32 bit Vista home basic | Re: Scheduler does not run batch file and can't run as an administrator OK. You are not going to believe this. The reason for it NOT executing was that there was an & in the file name. Take the & out of the filename and it works fine. Why oh why does an & stop the batch file from working when running in the scheduler or as an administrator (right click, run as administrator), but double clicking on it to run is NO PROBLEM AT ALL??? |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Running a batch file with scheduler | Vista General | |||
| Windows Task Scheduler with a batch file | General Discussion | |||
| How to determine a batch file is running as administrator | General Discussion | |||
| Vista Task Scheduler - Batch File | Vista General | |||
| Task Scheduler Returned Error 0x2 While Running Batch File | Vista account administration | |||