geekdba Posted July 8, 2007 Share Posted July 8, 2007 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 Quote Link to comment Share on other sites More sharing options...
Sparda Posted July 8, 2007 Share Posted July 8, 2007 Which user are you running the scheduled task as? Quote Link to comment Share on other sites More sharing options...
geekdba Posted July 8, 2007 Author Share Posted July 8, 2007 my own user, I am local admin is there something else I should check? Quote Link to comment Share on other sites More sharing options...
geekdba Posted July 9, 2007 Author Share Posted July 9, 2007 I have resolved my issue, it was because there was no password on my account, i have added a password the schdule now works Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.