Recommended Posts

hey I dont know if this is the right forum, but I couldnt find a DOS forum.

In any event, due to very frustrating circumstances. I need to copy an entire folder from one HDD to another, and I have to do it in DOS mode.

But all I can remember from DOS is COPY [Folder] E: etc

but all it does is copy the files in the folder, not the subfolders etc

so I just want to copy the whole folder and its entire contents

What would be the DOS command, for that??

Thankyou.

Link to comment
https://www.neowin.net/forum/topic/127946-dos-copy-commands/
Share on other sites

  Osiris said:
I fear the problem is the bootdisk I am using does not have xcopy.exe on it.

I suspect thatis why the command is not working.

exactly.

the xcopy i attached came from a DOS bootdisk on www.bootdisk.com

it should run in DOS

XCOPY.EXEFetching info...

  memodude said:
Why don't you save the time?

C:\original\> D:

D:\> md new

D:\> C:

C:\original\> copy *.* D:\new

C:\original\> D:

D:\> cd new

D:\new\> dir

Because he has folders under C:\original that he needs to be moved over and what you suggested won't move them. For example, your way won't move C:\original\folder\file.txt over.

Use:

XCOPY c:\source c:\target /e

/e copies all the subdirs, including the empty ones

use "xcopy /?" to see all your options... ;)

Edit: I case you have hidden or system files, you must add "/h" to the command, i.e.:

XCOPY c:\source c:\target /e /h

Edited by JHAres

Osiris, in the future when you need to work with files from dos, the only soft you ever need is Volkov Commander

http://www.egner-online.de/vc/en/vc4.shtml

or newer version 5 at

http://www.egner-online.de/vc/en/vc5.shtml

it's small enough to fit on any boot disk and can do anything you want with files: copy/move/delete/edit/view/pack/unpack/etc

no bootdisk/resuedisk should be w/o it

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

    • No registered users viewing this page.