Help in writing a simple little app...

Caporegime
Joined
26 Aug 2003
Posts
37,508
Location
Leafy Cheshire
Hi guys,

Really need to write a little script, app or whatever it would take to monitor a folder (within a windows environment), and when a certain file is removed, it is replaced by a new file.

Can I do this in any simple form or is it actually more complex than I'd have thought?

It can be as crude as necessary, even holding open a cmdline box is fine.

Cheers.
 
This would be extremely easy to do in a .NET language (e.g. C#) just use the FileSystemWatcher component and you could do it in about 5 lines of code.
 
Yep, very easy in .Net as PaulM says. Not sure about 5 lines of code though!

Download the VS express edition and give it a try there are loads of tutorials out there for file manipulation and the FileSystemWatcher object.
 
Back
Top Bottom