Hi,
Can someone help me? I have Windows 7 X64 home premium. I have a simple batch file that runs perfectly when I run it by double clicking it. When I schedule it to run using task scheduler, it runs except the echo does not create a log file. If run outside the task scheduler, the echo cmd creates log file just fine. Task scheduler history says it ran ok and results look ok, that is, the xcopy command appears to work, but no echo. Here is batch file:
echo. >> testlog.log
echo Start %date% %time% >> testlog.log
xcopy /c /d r:source\*.* r:\dest >> testlog.log
echo End %date% %time% >> testlog.log
echo. >> testlog.log
I have set to run even if user not logged on and at highest priv. The log file is in same folder as bat file. When run from command prompt everything is perfect. Echo does not work when run from task scheduler.
I searched forum but did not see similar problem.
Any ideas???
Thanks for any help
Can someone help me? I have Windows 7 X64 home premium. I have a simple batch file that runs perfectly when I run it by double clicking it. When I schedule it to run using task scheduler, it runs except the echo does not create a log file. If run outside the task scheduler, the echo cmd creates log file just fine. Task scheduler history says it ran ok and results look ok, that is, the xcopy command appears to work, but no echo. Here is batch file:
echo. >> testlog.log
echo Start %date% %time% >> testlog.log
xcopy /c /d r:source\*.* r:\dest >> testlog.log
echo End %date% %time% >> testlog.log
echo. >> testlog.log
I have set to run even if user not logged on and at highest priv. The log file is in same folder as bat file. When run from command prompt everything is perfect. Echo does not work when run from task scheduler.
I searched forum but did not see similar problem.
Any ideas???
Thanks for any help