Hi, Bruce
There are a couple of things you're not doing right: the file mask must be empty, NULL or something with not spaces in it; the Win32_find_data is a complex structure longer than MAX_PATH (hence the blow-up) and must be passed as reference; finally, the last 2 parameters must swap their position (another potential cause for disaster, although probably no harm has been done in this particular situation).
I've never used this function but, unless this info is enough for you to put things right, I'll try to give you a hand and post a coded solution.
>I appreciate your help and I am getting a book next week that will hopefully help me out, by using your code, or a derivitive of I am now trying to use the FtpFindFirstFile function and it blows VFP out of the water with a Fatal error.
>
>I Was just wondering if you had an success with this command.
>
>Here is what I am using as a command:
>lcFileMask = ' '
>lcWin32FindData = space( MAX_PATH )
>
>lnFileHndl = FtpFindFirstFile( lnFTPSession, @lcFileMask, lcWin32FindData, 0, INTERNET_FLAG_RELOAD )
bye
----------------------------------
António Tavares Lopes