I'm writing a proggie that will "listen" to a folder, when this folder is filled with some files (doesn't matter how many, even one) it will take the filename and will perform an operation on the filename (Using it as a parameter in a command line) and then it should delete the file.
It should perform that action until folder is empty again and then return to the "listening" mode.
Can anyone point me to the right direction? I don't know how to do it...
(I'm using VC++ 2005 on WinXP in case you're wondering, it's a Win32 Console App...)
One quick question regarding the post, I have to provide a LPCTSTR variable as the first argument, can you please explain what's the syntax for LPCTSTR?