Wednesday, June 10, 2015

Copy A Folder Contents To Another Location In Compressed Format Via Batch Files

                                   For copying the backup of a folder contents to another local folder and saved it as compressed type of file.Here we need to take data backup from “c:\wamp\www” to another local folder in Drive F: (F:\Backup), here it saved as ictops.7z (F:\Backup\ictops.7z)
  1. Created new test document and copy the below mentioned script into it
  2. Finally Save the file as a .bat extension
  3. Download and Install 7 Zip application software  
@echo off
echo **** IT Tech Beats Backup Solution******
"c:\Program Files\7-Zip\7z.exe"  a -t7z -r "F:\Backup\ictops.7z" "C:\wamp\www\*.*"
echo !!!!!!!!BACKUP COMPLETED THANKS!!!!!!!!

No comments:

Post a Comment

bloggerwidgets