Files on desktop [Repost]
I want to check files that have been added or edited (I thought of using fileSystemWatcher but every time I edited a file it was executed 3 times (but I don't know if this is the best way)) continuing.. I want to check the files from desktop to know if a file has been added or edited and my main point is to get the path of the edited file (if anyone can give me an idea on how to do this I would be very grateful (remembering that I don't know if fileSystemWatcher is the best way to check that)
4 Replies
i think its the right class to use. maybe do some more checks in the event to prevent something going wrong
I had managed to do when a file is edited it shows a message on the console but it displayed 3 times
maybe show some code?
personally when i save a file with notepad.exe it gave me 1 event and if i saved it with vs code it gave multiple
I'm on a trip but when I get back I'll send it to you. however I was editing with notepad.exe I don't know if I did it wrong but anyway when I get there I'll send you