• 0

How to copy a folder in MS-DOS?


Question

10 answers to this question

Recommended Posts

  • 0

Use Xcopy.

For example "xcopy C:\1234 D:\abcd /s" will copy all contents from C:\1234 to D:\abcd including subdirectories

Link with copy command help: http://www.computerhope.com/copyhlp.htm

Link with xcopy command help: http://www.computerhope.com/xcopyhlp.htm#01

Edit: aldago was fastest than me :laugh:

  • 0

it didn't work :(

this is what I tried:

xcopy d:\test\test1 d:\test\test2 /s

and the folders inside (d:\test\test1) were not copied to (d:\test\test2)..

both are existing folders with subfolders inside test1..

I have also tried

copy "test1" d:\test\test2

didn't work..

VidER

Edited by VidER
  • 0
  MPH said:
Use Xcopy.

For example "xcopy C:\1234 D:\abcd /s" will copy all contents from C:\1234 to D:\abcd including subdirectories

Link with copy command help: http://www.computerhope.com/copyhlp.htm

Link with xcopy command help: http://www.computerhope.com/xcopyhlp.htm#01

Edit: aldago was fastest than me :laugh:

take a look above his post :whistle:

  • 0
  VidER said:
it didn't work :(

this is what I tried:

xcopy d:\test\test1 d:\test\test2 /s

and the folders inside (d:\test\test1) were not copied to (d:\test\test2)..

both are existing folders with subfolders inside test1..

VidER

if the test1 folder is empty then leave the /s off the end

so try just

xcopy d:\test\test1 d:\test\test2

  • 0

I did.. and it worked :)

the command is:

xcopy d:\test\test1 d:\test\test2 /e

/e copies everything including empty subfolders

/s copies everything including subfolders.. but not the empty ones..

Thank you guys.

VidER

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.