cimscims
asked on
Read XML files and delete
1) I have a folder "ProjectDocuments". XML files are created and stored in the folder with the names as
- 'Data_07_15_2013_09:55:20. xml'
- 'Data_07_15_2013_09:57:20. xml'
- 'Data_07_15_2013_11:57:00. xml' etc.
2) I’m looking for a service/file watches which should check for the files, read and delete the files.
Need help. Thanks in advance
- 'Data_07_15_2013_09:55:20.
- 'Data_07_15_2013_09:57:20.
- 'Data_07_15_2013_11:57:00.
2) I’m looking for a service/file watches which should check for the files, read and delete the files.
Need help. Thanks in advance
ASKER
Thanks sedwick for q quick response. Do i have to use the above code in the windows service?
u don't have to but u can.
do u want it to run as a service?
do u want it to run as a service?
ASKER
If i don't use service, how should i use the code. Please suggest.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you. I will try and shall let you know.
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for cimscims's comment #a39326840
for the following reason:
Thank you sedgwick.
Accepted answer: 0 points for cimscims's comment #a39326840
for the following reason:
Thank you sedgwick.
ASKER
I want to close this question by awarding points to sedgwick. Accidently i clicked on my comment as solution.
ASKER
Thank you sedgwick.
for example in your case use this code:
Open in new window
http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx