FtpSetCurrentDirectory() fails
Posted: Thu Nov 16, 2006 1:34 pm
I am broke while using your example: FTP File Loop and download. I started to use the new synchonize and got the same error.
The error is: FtpSetCurrentDirectory('') fails with message: The parameter is incorrect.
It is on the: "Executing "FTP File Loop" step, which has no such parameter to it. The RoboTask doc has no mention. I googled it and came up with...
FtpSetCurrentDirectoryBOOL FtpSetCurrentDirectory(
IN HINTERNET hFtpSession,
IN LPCTSTR lpszDirectory
);
Changes to a different working directory on the FTP server.
Returns TRUE if successful, or FALSE otherwise. To get the specific error code, call GetLastError. If the error code indicates that the FTP server denied the request to change a directory, use InternetGetLastResponseInfo to determine why.
hFtpSession
Valid handle to an FTP session.
lpszDirectory
Address of a null-terminated string that contains the name of the directory to change to on the remote system. This can be either a fully qualified path name or a name relative to the current directory.
The error is: FtpSetCurrentDirectory('') fails with message: The parameter is incorrect.
It is on the: "Executing "FTP File Loop" step, which has no such parameter to it. The RoboTask doc has no mention. I googled it and came up with...
FtpSetCurrentDirectoryBOOL FtpSetCurrentDirectory(
IN HINTERNET hFtpSession,
IN LPCTSTR lpszDirectory
);
Changes to a different working directory on the FTP server.
Returns TRUE if successful, or FALSE otherwise. To get the specific error code, call GetLastError. If the error code indicates that the FTP server denied the request to change a directory, use InternetGetLastResponseInfo to determine why.
hFtpSession
Valid handle to an FTP session.
lpszDirectory
Address of a null-terminated string that contains the name of the directory to change to on the remote system. This can be either a fully qualified path name or a name relative to the current directory.