Group: Internet Functions (WinInet) - Library: wininet
Retrieving list of files on the FTP directory
Downloading files from the FTP server using InternetReadFile
Reading list of folders and files on FTP server
Custom FTP Class for Visual FoxPro application
BOOL FtpSetCurrentDirectory(
HINTERNET hConnect,
LPCTSTR lpszDirectory
);
DECLARE INTEGER FtpSetCurrentDirectory IN wininet;
INTEGER hFtpSession,;
STRING @ lpszDirectory
hConnect [in] Valid HINTERNET handle to an FTP session.
lpszDirectory [in] Pointer to a null-terminated string that contains the name of the directory to change to on the remote system
Returns TRUE if successful, or FALSE otherwise
The function is very straightforward, nothing sophisticated. You can pass the directory name by a reference or by a value; it looks like the VFP automatically changes the passing value to a proper format