Last post Mar 23, 2011 09:36 PM by Decker Dong - MSFT
Mar 21, 2011 05:35 AM|vijay.reddy559|LINK
I have a Scheduler it will run a webserive at a fixed time every day.
I am generating an xml file based on that scheduler.
My requirement is i have folder name as backup, ever day i am creating a new xml file but i am loosing my past xml files. So, how to copy the previous xml file in backup folder and
create a new xml file in main folder.
Mar 21, 2011 06:10 AM|Eswaran_MCA|LINK
Before creating new xml file, check whether the xml file already exists or not. If it exists then rename the existing file by substract 1 from today's Date. Then create new xml file.
Create every xml file name along with the today's DateMonthYear.
ex: xmlFileName_DDMMYYYY (inputParams_21032011.xml).
Mar 23, 2011 09:36 PM|Decker Dong - MSFT|LINK
Suppose you have two folders called "Backup" and "Current". Current folder has a current xml for today, and backup saves the xml files whose datetime is previous than today……
I suggest you create a global.asax file, in the Application_End event, do this: