[Windows - Bash] Moving folder

Come up with a useful post-processing script? Share it here!
Post Reply
koolmatt
Newbie
Newbie
Posts: 5
Joined: September 14th, 2009, 9:33 am

[Windows - Bash] Moving folder

Post 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:)
undertow
Newbie
Newbie
Posts: 12
Joined: June 16th, 2008, 8:09 am

Re: [Windows - Bash] Moving folder

Post 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>
Last edited by undertow on September 15th, 2009, 4:14 pm, edited 1 time in total.
Post Reply