Neetu,
You can use a Timer control. In the Timer() method you can use the FILE() function to check for the existence of the file.
>I need to write a program that will poll a directory for a specified file. The interval of time to poll the directory is preset. If found the program should process the file. When processing the file, the program should not poll for another file even if it meets the interval of time specified.
>
>I would like to know if there is a foxpro command/control that I can use.
>
>Can I use the timer control?