DOS KINGS -- I want to move a folder and all of its subdirectories, what command would i use?

Sephiroth_IX

Diamond Member
Oct 22, 1999
5,933
0
0
Moving CDROM (e:) to a folder, i would say Copy E:\*.* to C:\(folder i want)... Is there a switch i need in there, though?
 
Aug 23, 2000
15,509
1
81
use the mighty xcopy command.
xcopy E:\*.* to C:\(folder i want)
this will copy all files and sub directories and their files
 

Czar

Lifer
Oct 9, 1999
28,510
0
0
xcopy should work, just dont remember the switches, but this is the command.
 

JackMDS

Elite Member
Super Moderator
Oct 25, 1999
29,544
421
126
There is a Shareware program called Ztree, it is a Modern version of The Historically Xtree written for Win98.

It has a command ?Duplicate? takes ½ second, and it can duplicate or move any part of the directory structure from one location to another. It can do a lot of other tricks that were lost with the move from DOS to the Windows file management system.
 

UnixFreak

Platinum Member
Nov 27, 2000
2,008
0
76
God, I love Xtree, brings back fond memories, used to run that on my 286 12 mhz to organize my
40 meg hard drive. Those were the days....
 

zuffy

Senior member
Feb 28, 2000
684
0
71
It took me awhile to leave Norton Commander 4.0 and 5.0. I tried using the GUI version for Windows but it was not the same.
 

lowtech1

Diamond Member
Mar 9, 2000
4,644
1
0

XCOPY E:\*.* C:\folder_i_want /s

/s - copy all sub directories.

You have to be careful with XCOPY...It does copy long file names, but don't convert LFN to 8.3 names too well...You might want to try XXCOPY to get the task done perfectly.

Command for XXCOPY copy volume to another volume including ghost: XXCOPY E:\ C:\folder_i_want /CLONE

 

thornc

Golden Member
Nov 29, 2000
1,011
0
0
if you are using win9x in the dos command mode, use the xcopy32 instead...

it will handle the long file names, and that kind of stuff, if not go with the ...

xcopy[32] source destinattion /s /e

should do the trick, also you may try adding /h /k, to copy those hidden files
and maitain the attributes..../s /e will copy subdirectories including the empty ones!!



 

LongTimePCUser

Senior member
Jul 1, 2000
472
0
76
Are you trying to "move" the files or do you just want to "copy" them. Moving means you want to remove the original subdirectory?

DOS has a MOVE command. Type move /? to see the parameters.
 

lowtech1

Diamond Member
Mar 9, 2000
4,644
1
0

I don't think he need:

/E -copy empty dir
/H -copy hidden files
/K -copy attributes

because the CAB files on a CD doesn't contain empty dir, hidden files, or attribute.
And, M$ XCOPY32 still have some trouble with LFN conversion :)
 

Noriaki

Lifer
Jun 3, 2000
13,640
1
71
Xtree kicked ass!

I remember that good stuff :) I had Xtree gold 3.0 I think it was, I had it on my 486/66, i had DOS 6.22 and Win 3.11 but Xtree owned Win 3.11, they have a new Ztree for Win98 do they? Does it kick Win98s ass as much as Xtree kicked Win3.11s ass?

as for the question, come on seph! how could you for get Xcopy :)

xcopy[32] source dest /E

(/S copies subdirectes, but not empty ones, /E is /S including empties, you don't need /S if you use /E)

You probably want to use /K /H as well to make sure you get all the files.
 

RobSan

Member
Oct 11, 1999
178
0
0
Or, you can use the MOVE command which is present in all of the later iterations of DOS. Open a DOS window and type MOVE /? for a list of the switches that you might want to use, and for command line instructions.

Rob
 

jkdude

Banned
Oct 10, 1999
1,204
0
0
hehe YoungFart, you beat me to it. I was going to say that MOVE won't work at all on a cd-rom, hehe. Besides, as stated, he wants to copy

so, just do this, like everyone else here is saying:

xcopy E:\*.* C:\(folder you want) /E


and that should do the trick for ya!

good luck :)