Batch file question

Forum Windows XP : Windows XP General Discussion - Batch file question

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Archived from groups: microsoft.public.windowsxp.general (More info?)

 

Why does one copy copy a file to two different places in the following?



I have a batch program that copies some files that end up on a camera
card to take back and forth between work and home.

Part of my code is.

pause
xcopy "%USERPROFILE%\My Documents\*.doc" "C:\floppy\" /Y /s /Q
pause


At the first pause I check and see:
C:\Floppy>dir
Volume in drive C has no label.
Volume Serial Number is 0434-350F

Directory of C:\Floppy

09/19/2005 09:51 AM <DIR> .
09/19/2005 09:51 AM <DIR> ..
09/19/2005 07:40 AM 28,294 abook.mab
09/06/2005 03:08 PM 55,903 Backup of default.zmd
09/19/2005 09:51 AM <DIR> belfry
09/08/2005 03:02 PM 55,903 default.zmd
09/19/2005 09:51 AM <DIR> firefox
11/01/2004 08:19 AM 55,884 howard.zmd
09/19/2005 09:51 AM <DIR> opera
09/19/2005 09:51 AM <DIR> SunBird
4 File(s) 195,984 bytes
6 Dir(s) 65,206,063,104 bytes free

After this line I find both of the following:

C:\Floppy\My Documents\Bogart\diary.doc
and
C:\Floppy\My Pictures\Bogart\diary.doc

C:\Floppy>dir
Volume in drive C has no label.
Volume Serial Number is 0434-350F

Directory of C:\Floppy

09/19/2005 09:51 AM <DIR> .
09/19/2005 09:51 AM <DIR> ..
09/19/2005 07:40 AM 28,294 abook.mab
09/06/2005 03:08 PM 55,903 Backup of default.zmd
09/19/2005 09:51 AM <DIR> belfry
09/08/2005 03:02 PM 55,903 default.zmd
09/19/2005 09:51 AM <DIR> firefox
11/01/2004 08:19 AM 55,884 howard.zmd
09/08/2005 11:39 AM 36,864 internal phone list.doc
09/19/2005 09:51 AM <DIR> My Documents
09/19/2005 09:51 AM <DIR> My Pictures
09/19/2005 09:51 AM <DIR> opera
09/19/2005 09:51 AM <DIR> SunBird
5 File(s) 232,848 bytes
8 Dir(s) 65,204,535,296 bytes free

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Batch file question
Go to:

There are 952 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them