1.

Solve : Scheduling tasks?

Answer»

Hello,

I have written a batch FILE that starts a .exe program that I have written in Visual Basic. When I run the batch file, it works PERFECTLY. But when I schedule the batch program with the DOS command "at", it is added to the scheduling task, but it never activates the .exe program. I FIRST had the batch file in the "H:\" directory (that is, just under a drive) and then it actually worked (it was scheduled at a specific time and then it run my .exe program perfectly). But as soon as I moved the batch file, and the corresponding .exe file that it starts, to a subfolder under "H:\" (the path is now "H:\Projekt 1\") and scheduled the batch file, it didn't start the .exe program. When I run the batch file manually (without scheduling) it manages to start the .exe file, but when I add it as a task, it doesn't work. Why is it so that as soon the batch file is under a subfolder, it doesn't work to schedule it?
Very grateful for help!maybe you can try renaming your folder not to include SPACE...i don't know if its the cause, but you can always give it a try...Thx, I'll try that...I have a batch script (*.bat file) which I have scheduled to run from the windows scheduler. This is supposed to pick a file from the G:\ drive of the pc and place it in the C:\ drive. but when run from Schduler it does not recognise the file name or location . The script works when run from the dos prompt. The run as user ID used on both occasion has adminstrator rights .
Can anyone help please?check schedular log files and see if any messages. also can put some debugging into your batchPost the contents of the batch file.

Or check the file: C:\Windows\Schedlgu.txt



Discussion

No Comment Found