Jump to content

Batch File Script help


Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...