If you want to copy files and foldes from one location to other location by just on one click.
You can make it with as simple .bat file in DOS.
Just copy the below code on notepad and save it copyfolder.bat.
Once you copy the above code in notepad. you can change below things
You can make it with as simple .bat file in DOS.
Just copy the below code on notepad and save it copyfolder.bat.
@echo off
:: variables
set SourceFolder=D:\Source
set TargetFolder=D:\Target
set FolderWithDate=%date:~10,4%_%date:~4,2%_%date:~7,2%
set backupcmd=xcopy /s /c /d /e /h /i /r /k /y
pause
echo ### Backing up source directory...
%backupcmd% "%SourceFolder%" "%TargetFolder%\%FolderWithDate%"
echo ## Backup Complete!
@pause
Once you copy the above code in notepad. you can change below things
Your source folder which need to be copy: D:\Source
Your target folder where you want to copy it: D:\Target
Your target folder where you want to copy it: D:\Target
I hope it will help you. Thanks
"This information really helped me a lot. It was very informative.
ReplyDeleteCloud Advisory Services
cloud advisory companies
cloud advisory process
cloud consultation services
cloud consulting companies
cloud services consulting
cloud service consultant
cloud consult and advisory services
Cloud Consulting services"