File System Watcher Changed/Renamed event

S

Stephen

Hi all,
I am stuck with a problem and wanted some guidance. I am using
FileSystemWatcher to monitor a folder "C:\Temp1" and updating "C\Temp2" say
somthing happens in Temp1, I want to update Temp2

Say I create "Text.txt" in Temp1, in the created event I check for whether
"Text.txt" is present in Temp2 and copy it there

Problem:
If i try to rename "Text.txt" to "NewText.txt" then I wanted to rename
"Text.txt" in Temp2 to "NewText.txt" but I cant delete "Text.txt" and make
it "NewText.txt", it has both files "Text.txt" and "NewText.txt"

Hope I am making sense

Please advice,
Stephen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top