Do you want to Backup Your Data without any third party software. Batch file is the solution.
Xcopy has been deprecated under Vista and Windows 2008, this means that while still available now it may disappear in a future OS release. To ensure your scripts are 'future proof' use other tools (such as Robocopy) instead of xcopy.
XCOPY "COPY SOURCE" "DESTINATION" /D /E /C /R /I /K /Y
Now save file as backup.bat
Now save file as backup.bat
Copy Optional
/D Copy files changed on or after the specified date. If no date is given, copy only files whose source date/time is newer than the destination time.
/D Copy files changed on or after the specified date. If no date is given, copy only files whose source date/time is newer than the destination time.
/E Copy folders and subfolders, including Empty folders. May be used to modify
/C Continue copying even if an error ocucrs.
/R Overwrite read only files
/I IT In Doubt always assume the destination is folder eg. When destination does not exist.
/K Copy attributes. XCOPY will otherwise reset read-only attributes.
/Y Suppress prompt to confirm overwriting a file. may be preset in the COPYCMD env variable.
No comments:
Post a Comment