Hello.
I'm sorry if this is the wrong forum, but I haven't been able to get an answer at the microsoft/sharepoint forum.
I've been using this on the command prompt to make backups of sharepoint:
- smigrate -w http://siteIWantToBackUp/ -f x:\LocationToSaveBk\fileName.fwp
I wanted a batch file and a schedule to run everyday, but I wanted the file name to be a variable so that it would be a different name everytime it was backed up. I wanted the file name to be the date of the backup.
I don't know anything about batch file programming, but someone gave me this code:
- set fname=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%
fname would be "Thr" on thursday.
So I tried to use this
- set fname=%DATE:~0,4%%DATE:~5,2%%DATE:~8,2%
-
smigrate -w http://siteIWantToBackUp/ -f x:\LocationToSaveBk\%fname%.fwp
and it doesn't work.
Does anyone have any suggestions?
Thank you for your time and help.