Click to See Complete Forum and Search --> : Move directories in DOS
WinOS2Mac
01-26-2001, 04:09 PM
what would i need to type in the command prompt to move a directory that has subdirectories into another Directory on the same drive
DOS 6.2
I need to know how to do this without using Windows®.
how can I accomplish this in DOS?
Example= say i had a C:\games directory
and i wanted to move it to c:\mystuff\games
but in that C:\games diredtory there were other Directories within it, like C:\games\sports and c:\games\action\shooting
etc..
what command do I use in DOS to move everything to another directory?
Thanks a lot!
I really appreciate it
OuTpaTienT
01-26-2001, 04:56 PM
I think it's as easy as this:
To move C:\games to C:\mystuff\games
move C:\games C:\mystuff\
OuTpaTienT
01-26-2001, 05:10 PM
However, I'm stuck on a Win2k machine right now, and I might not be remembering DOS 6.2 correctly. If the above command does not work, try this:
move C:\games\*.* C:\mystuff\games\
WinOS2Mac
01-26-2001, 05:13 PM
I tried the first one and it did not work, so now let me try the other one.
will that move the subdirectories as well?
I tried it and it moves the files but not the subdirectories.
It gives me the message [Unable to open source]
[This message has been edited by WinOS2Mac (edited 01-26-2001).]
OuTpaTienT
01-26-2001, 05:17 PM
That I'm not sure about...guess we'll find out huh?
Do you do a lot of file handling in DOS? If so you could definitely use something like X-Tree. If you need it I'll send it to ya (it fits on one floppy, so it's not very big).
RenaissanceMan
01-26-2001, 05:33 PM
OuTpaTienT, your suggested path
move C:\games\*.* C:\mystuff\games\
should have worked,
WinOS2Mac, you could try this, although you might want to delete the original dir.
copy c:\games\*.* c:\mystuff\games
I think that should to the trick as well.
OuTpaTienT, I remember when Xtree Gold came out years ago before window95, thought it was sent from heaven http://sysopt.earthweb.com/forum/smile.gif
Gutter Ball
01-26-2001, 06:20 PM
If you have compression(zip or ARJ, I'm more familiar with ARJ) you can just ARJ up the main directory and use the -r extension to include subdirectories. Then decompress the file to where you want. So to do your example: go into c:\games and type "arj a name *.* -r" and after it's done compressing, type "arj x name c:\games\action\shooting" and there you go. Other than that, I dunno how else to move in DOS http://sysopt.earthweb.com/forum/smile.gif
OuTpaTienT
01-26-2001, 07:33 PM
WOS2M, let us know if you're successfull.
RenaissanceMan, if you liked X-Tree as much as I did then you simply must check out Z-Tree (http://www.ztree.com/) . In fact, you probably already know about it, but if you don't, then go here: http://www.ztree.com/
Essencially it's X-Tree but complete native 32bit code and doesn't have any of the limitations old X-Tree does.
Jeff7
01-26-2001, 09:26 PM
Xcopy /e should do the trick. Only problem - you'll lose the long file names.
WinOS2Mac
01-26-2001, 10:29 PM
well here's the thing.
I was trying to Fix my friends computer because his Windows directory got moved into the C:\Mirc folder, The same thing happened to me last week so I knew that all i had to do was move the windows directory back out to the C:\ drive so that It wouls be back at C:\windows and every thing would work.
last time i just took out my hard drive and put it in computer 2 and started windows and moved the folder, but this time i didn't have a second computer so I had to use a boot disk to get to the command prompt and Move the windows directory from DOS.
But I always got the files moved but the sub directories did not. Finally i did
" XCOP c:\mirc\windows c: /s"
and it worked but it copied to files to the wrong directory, it copied them to the directory i was in , whcih was program files,
So since it took about 20 min to do that and i didn't want to doit again, I just took the hard drive out, took it to my house in my computer and moved it through windows.
It worked just fine.
i just dont get why I wasn't successful in moving the directories in DOS
how would one go about moving the Windows Directory back to C:\Windows (where it belongs) in DOS? from the C:\Mirc folder where it was
I could not do it.
I had to use a second PC, but what happens when i dont have that 2nd PC available. what will I do then?
well it would be nice to know how to do it but I dont want to take away your time from someone on sysopt forums who really needs help because this matter has been solved, but if you do have an extra couple of minutes and want to share how i could do this for future reference i would really appreciate it.
thanks!!
BFlurie
01-27-2001, 05:43 AM
Didn't you want:
XCOPY c:\mirc\windows\*.* c:\windows /s"
[This message has been edited by BFlurie (edited 01-27-2001).]
SysOpt.com
Copyright Internet.com Inc. All Rights Reserved.