Saturday, March 10, 2012

How to make and schedule a Batch file to make backup copies of a folder, and log it.

Create a batch file like this
---------------------------------------------------------------------------------------


Echo.  >>c:\somelogfile.txt
Echo.=================== >>c:\somelogfile.txt
echo.%Date% >>c:\somelogfile.txt
echo.%Time% >>c:\somelogfile.txt

rem out this line if you want to log every single file in the logfile
@echo off


xcopy C:\Copythisfolder /c /s /r /y /i C:\Tothisfolder


------------------------------------------------------------------

Download System Scheduler from
http://www.splinterware.com/download/index.htm


Schedule to run batch file every night

No comments:

Post a Comment