I want to backup a directory before I install.
I want to backup this directory for example, to c:\backup\2010_06_24\
which means: year 2010, month 06 (june) and day 24 (today).
I might also want to add the current time like this:
c:\backup\2010_06_24__17_11_02\
But the date and time properties are not formatted like I want....
The date property is: "6/24/2010"
and the time property is: "17:11:02"
So my questions are:
1. how do I format it to be like I want?
2. When should I do the backup? meaning: obviously not in the "install" phase, since by then: all NEW files have been already copied!
3. Do I have to use a custom command to do that? like:
Code: Select all
xcopy "c:\program files\myproject\config\*.*" "c:\backup\2010_06_24__17_11_02\"
Thanks for all, Dashut.