How do I find out if a new file exists in a directory
-
Hi I have an application written in VB that checks whether a new wav file has been added to a folder by using the following: MyFile = Dir("C:\MyDirectory\*.wav") If MyFile contains a string, the file is then moved to another directory to manipulate. I wish to do the same in VC (6.0) - have you any suggestions? Thanks for any help that you can give! Mike
-
Hi I have an application written in VB that checks whether a new wav file has been added to a folder by using the following: MyFile = Dir("C:\MyDirectory\*.wav") If MyFile contains a string, the file is then moved to another directory to manipulate. I wish to do the same in VC (6.0) - have you any suggestions? Thanks for any help that you can give! Mike
mike.r.winter@btinternet.com wrote:
I wish to do the same in VC (6.0) - have you any suggestions?
Take a look at the FindFirstFile/FindNextFile[^] functions; they may be what you need.
-
mike.r.winter@btinternet.com wrote:
I wish to do the same in VC (6.0) - have you any suggestions?
Take a look at the FindFirstFile/FindNextFile[^] functions; they may be what you need.
Excellent - thanks very much - using the example got exactly what I wanted! Thanks very much Mike