Computing.Net > Forums > Windows XP > batch move everything under folder

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

batch move everything under folder

Reply to Message Icon

Name: bbmak
Date: February 21, 2009 at 10:13:15 Pacific
OS: win xp
CPU/Ram: 1024
Product: Custom / N/A
Subcategory: General
Comment:

I want to know are there anyway to use the 'move' command to move everything under folder

for example, currently i am using this command, however, this command only move files but not sub folder under c:\temp.
move c:\temp\*.* d:\temp\

so can anyone help me?



Sponsored Link
Ads by Google

Response Number 1
Name: kptech
Date: February 21, 2009 at 12:05:41 Pacific
Reply:

Sure,

Move won't do this when moving files to another drive. you'll have to copy the files to the new drive and then remove them from the old one.

xcopy c:\temp\*.* d:\temp\*.* /s /v /i /h /k /y copies the temp folder and its contents to the d: drive.

rd c:\temp /s /q removes the temp folder and all contents from the c: drive.

Be careful with the "rd" command. When used like this it will remove the c:\temp directory and all files/folders in it. For example, if you get careless and type "rd c:\ /s /q", you will erase everything on your C: drive.


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: batch move everything under folder

Moving OE stored folder to network? www.computing.net/answers/windows-xp/moving-oe-stored-folder-to-network/148730.html

Move All Users Folder www.computing.net/answers/windows-xp/move-all-users-folder/94166.html

Moving the TEMP folder? www.computing.net/answers/windows-xp/moving-the-temp-folder/119656.html