?
Solved

batch file to move folders and filesto new folder

Posted on 2011-09-17
4
Medium Priority
?
349 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 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

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

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

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

719 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