Question:
I am trying to schedule (with scheduled tasks) a batch file to run but keep getting an error?
anonymous
2011-06-21 05:22:53 UTC
I have scheduled a batch file to run everyday at 20.30

Its a simple batch file

net stop "RemoteWare Server"
net start "RemoteWare Server"
pause
exit

The server is running windows 2000 server edition.

If I double click the batch file it works fine, with no issues. But if I schedule it to run or if I ask it to run now it comes up with the error 'net' external or internal command is not recognized. (Or something like that).

I've tried scheduling another batch file to open it, I've tried another batch file with no luck. I've tried to schedule it via the AT command but thats not worked either.

The server does not have the SC command installed.
Three answers:
?
2011-06-21 05:40:57 UTC
This is often caused by insufficient permissions or using mapped drives that do not exist under a scheduled process. Without seeing your batch file, it is impossible to be more specific. Remember - we can't see your screen!
vinodh t
2011-06-21 06:09:25 UTC
Why u are going for scheduled task.u can schedule that in batch itself.



:a

set vi=%date% %time%

set g=%vi:~10,4%%vi:~4,2%%vi:~7,2%%vi:~15,2%%vi:~18,2%

pause

rem 201106031853 is 11 june 2011 12:16 you can set ur date and time to execute particular file

if %g% == 201106111216 (

net stop "RemoteWare Server"

net start "RemoteWare Server"

pause

exit

)

goto a
?
2016-11-19 05:04:43 UTC
ok, to try this, you will desire to run the batch report at specific circumstances. flow to start menu>run (xp) and merely initiate menu (vista/7) and press cmd , enter. Press there: at [hourh]:[minutesm] /each:m,t,w,th,f,s,su initiate "[process your batch report, I positioned then at System32]" .that would desire to artwork, wish it helped and stable success! :)


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...