There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
acer black screen blue screen boot bsod computer connection crash css dell display driver drivers email error excel explorer firefox firefox 3 game hard drive internet internet explorer itunes laptop linux malware network networking outlook outlook 2003 outlook express partition password printer problem ram router security slow software sound trojan usb video virus vista windows windows xp wireless
DOS/PDA/Other
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Operating Systems > DOS/PDA/Other >
How to copy directories in DOS


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

Closed Thread
 
Thread Tools
TrentDW's Avatar
Junior Member with 15 posts.
 
Join Date: Sep 2001
Location: Sydney, Australia
05-Sep-2001, 09:11 PM #1
How to copy directories in DOS
Hi,

I can't for the life of me work out how to copy and entire directory in DOS.

Let's say I have a directory called C:\Test that I want to move to C:\TestDirectory\ so that it becomes a subdirectory. What command do I need to use?

I have tried XCOPY but keep getting errors when I use the syntax

xcopy c:\test c:\testdirectory\ /e

Could someone please help me out?

Thanks,

Trent
brianF's Avatar
Distinguished Member with 12,096 posts.
 
Join Date: Dec 1999
Location: Minnesota
05-Sep-2001, 09:38 PM #2
MacFromOK's Avatar
Senior Member with 1,947 posts.
 
Join Date: Mar 2001
Location: Oklahoma
Experience: idiota de la aldea
05-Sep-2001, 10:31 PM #3
You can use this:

xcopy /e c:\test\*.* c:\testdirectory\test

If c:\testdirectory\test doesn't exist, you'll
be prompted whether the destination is
a directory or a file.
TrentDW's Avatar
Junior Member with 15 posts.
 
Join Date: Sep 2001
Location: Sydney, Australia
05-Sep-2001, 10:35 PM #4
Thank you
Thank you for your responses. I'll give it a shot.

Trent
MacFromOK's Avatar
Senior Member with 1,947 posts.
 
Join Date: Mar 2001
Location: Oklahoma
Experience: idiota de la aldea
05-Sep-2001, 10:43 PM #5
One more thing.

To include hidden and system files be sure
to use the /h switch also:

xcopy /e /h c:\test\*.* c:\testdirectory\test
Closed Thread

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who help people like you solve computer problems. See our Welcome Guide to get started.



Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 11:28 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.