Solved

batch file to move folders and filesto new folder

Posted on 2011-09-17
4
347 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 43

Accepted Solution

by:
Steve Knight earned 500 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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

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

This is pretty cool.  The purpose of this VB Script is to help you document where JAR (Java ARchive) files and specifically java class files are located so that you can address issues seen with a client or that you can speak intelligently with a dev…
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 …

738 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