Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

batch file to move folders and filesto new folder

Posted on 2011-09-17
4
Medium Priority
?
351 Views
Last Modified: 2012-05-12
i need a batch script that will move a folder and all files in the folder to a new folder

example;
move C:\MyFiles  [ which has 3 folders and 6 files ] to C:\Backups

Thanks
0
Comment
Question by:webdott
  • 2
  • 2
4 Comments
 
LVL 43

Accepted Solution

by:
Steve Knight earned 2000 total points
ID: 36554806
Have you tried move - it will do subdirs and files too as long as it is on the same drive:

move c:\myfiles c:\backups

Steve
0
 

Author Comment

by:webdott
ID: 36555140
that worked - thanks


0
 

Author Closing Comment

by:webdott
ID: 36555141
thanks
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 36555181
No problem, I like the easy ones!
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Screencast - Getting to Know the Pipeline

885 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question