Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.msdos.batch    |    Fun with MS-DOS batch files    |    42,547 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 41,046 of 42,547    |
|    Tom Sr to All    |
|    Xcopy batch file for backup    |
|    12 Dec 14 14:24:54    |
      From: tomherouxsr@gmail.com              Windows 7 results, to be deployed in win xp pro v3              This batchfile's line after Echo 1 produces and error and the second line       works fine. What is the problem with the line as described above????              @Echo off       :: variables       ::Set drive=E:\Backup       Set drive=f:\xbackup       Set BackUpCmd=xcopy /s /e /h /c /d /i /r /k /y       Echo 1. Backing up My Documents...       %BackUpCmd% "%USERPROFILE%\My Documents" "%drive%\MyDocuments"       @Pause       Echo 2. Backing up Passport Business Solutions       %BackUpCmd% "c:\PBSV1202" "%drive%\PBSv1202"       Echo Backup Complete! ... Hit any key ...       @Pause              Error Message as below:              1. Backing up My Documents...       Access denied       Unable to create directory - F:\xbackup\MyDocuments       File not found - *.*       0 File(s) copied       Press any key to continue . . .       2. Backing up Passport Business Solutions       0 File(s) copied       Backup Complete! ... Hit any key ...       Press any key to continue . . .              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca