you are welcome
>Thanks Sergey, it solves my problem.
>
>regards,
>
>Jerry
>
>
>
>
>>See
http://www.berezniker.com/content/pages/visual-foxpro/enumerate-available-drives>>
>>>I have a backup menu, the client can set the backup drive / folder.
>>>
>>>the problem is, the client set to the wrong drive, such as: F:\backupdata, while drive F: doesn't exist.
>>>the program will crash.
>>>
>>>is there any way I can detect it's a valid drive / folder before I proceed?
>>>
>>>regards,
>>>
>>>Jerry
--sb--