Friday, May 29, 2015

Copy A Folder Contents To Another Location Via Batch Files

                   For copying the backup of a folder contents to another local folder.Here we need to take data backup from “c:\wamp\www” to another local folder in Drive F: (F:\Backup)
  1. Created new test document and copy the below mentioned script into it
  2. Finally Save the file as a .bat extension                  
@echo off
echo **** IT Tech Beats Backup Solution******
XCOPY C:\wamp\www\*.*  F:\Backup\*.* /s /e
echo !!!!!!!!BACKUP COMPLETED THANKS!!!!!!!!
Where
/s  ----> Copies folders and subfolders except for empty ones
/e  ----> Copies directories and subdirectories, including empty ones  

No comments:

Post a Comment

bloggerwidgets