Computing.Net > Forums > Disk Operating System > xcopy switches

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

xcopy switches

Reply to Message Icon

Name: Krystyna
Date: March 14, 2001 at 05:12:09 Pacific
Comment:

Could someone refresh my memory in regard to the meaning of the switches for xcopy.
As in xcopy /s /c /h /e /r /k
I think s is for system files
and h for hidden files
and e for ? empty directories
but c and r and k has got me stumped.
Thankyou...Krystyna




Sponsored Link
Ads by Google

Response Number 1
Name: World Library
Date: March 14, 2001 at 07:50:50 Pacific
Reply:

If 6.22 or below C:\help
If 7 (win95 + c:\xcopy /?

Hope this is of some help.

W.L.


0

Response Number 2
Name: Michael
Date: March 14, 2001 at 07:52:43 Pacific
Reply:

/S Copies subdirectories
/E Copies subdirectories, including empty ones.
/C continues copying even if errors occur.
/h copies hidden and system files
/r overwrites read only files
/k copies attributes.
/? actually listed all these switches for me. Coincidentally, /? works on most DOS commands. Try it.

-Michael



0

Response Number 3
Name: fred6008
Date: March 14, 2001 at 17:38:08 Pacific
Reply:

I don't think you can copy hidden and system files in Microsoft DOS. You got that off a DR-DOS Xcopy /?, didn't you?
The reason you can/t Xcopy Windows 95 and above to another drive as a backup is that lack of /h and long filenames. And think how contrived long filenames are. Command.Com is loaded in DOS. So a modification to Command.COM must be loaded in windows instead of just modifying command.com.


0

Response Number 4
Name: Krystyna
Date: March 14, 2001 at 19:24:32 Pacific
Reply:

Thanks for the responses.
I did try xcopy/? but it was from C:\Windows\Command from Win 9x.
The only switches they mentioned from that list was S and E.
When I tried to xcopy some hidden files to a floppy, I got invalid parameters for H and C and R and K.
I haven't dealt directly with DOS since I started using Windows 3.1, so I just plain forget it all.
The reason for my interest is that I have read in the Win 9x forum about cloning a HDD by using the command
xcopy C:\ D:\ /s /h /e /r /c /k
I tried it, but got nowhere fast.
Is that a valid command that should work in Windows 9x, or is it just for pure DOS.
Thanks...Krystyna


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Network bootdisk, slow da... please...NEED HELP 2



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: xcopy switches

copying win98 cd to c: drive www.computing.net/answers/dos/copying-win98-cd-to-c-drive/10475.html

xcopy errorlevels??? www.computing.net/answers/dos/xcopy-errorlevels/7510.html

xcopy date copying www.computing.net/answers/dos/xcopy-date-copying/13400.html