I have a very simple batch file, see below. The problem i have is it works fine until I schedule it, once I schedule it to run via the at scheduler it then does not move the dir, the copy works but I would like it to rename the dir first. It does work when run manually ????
@echo off
echo %DATE% >> c:itunes.log
if exist g:itunes move /Y g:itunes g:itunes.%date%
md g:itunes
xcopy /Y /S c:DOCUME~1CRAIGR~1mydocu~1mymusi~1itunes* g:itunes >> c:itunes.log
All help is appreciated, thanks in advance