المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : How do I find out if a new file exists in a directory



C++ Programming
10-28-2009, 08:11 PM
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