Page 1 of 1

[Windows - Bash] Moving folder

Posted: September 14th, 2009, 11:15 am
by koolmatt
Hi all;

after spending my noon on google/forums and not find the solution please accept my post:


I try to find the correct command in dos mode to move a folder, with files inside, from a source folder to a destination folder.
It seems to be impossible with move command (as it works only for files, not for folders).

And i don't want to use xcopy/deltree...

Thank you for support !

BR:)

Re: [Windows - Bash] Moving folder

Posted: September 15th, 2009, 4:11 pm
by undertow
Uh, I can move directories just fine.. even with files inside.

Code: Select all

C:\>ver

Microsoft Windows XP [Version 5.1.2600]

C:\>mkdir TEMP

C:\>cd TEMP

C:\TEMP>mkdir 1 2

C:\TEMP>echo >> 1\1.TXT

C:\TEMP>echo >> 2\2.TXT

C:\TEMP>dir /w
 Volume in drive C has no label.
 Volume Serial Number is A8A7-611A

 Directory of C:\TEMP

[.]  [..] [1]  [2]
               0 File(s)              0 bytes
               4 Dir(s)  77,072,605,184 bytes free

C:\TEMP>move 1 2

C:\TEMP>cd 2

C:\TEMP\2>dir /w
 Volume in drive C has no label.
 Volume Serial Number is A8A7-611A

 Directory of C:\TEMP\2

[.]     [..]    [1]     2.TXT
               1 File(s)             13 bytes
               3 Dir(s)  77,072,605,184 bytes free

C:\TEMP\2>