A | B | C |  D | E | F |  G | H | I |  J | K | L |  M | N | O |  P | Q | R |  S | T | U |  V | W | X |  Y | Z



FtpSetCurrentDirectory

Changes to a different working directory on the FTP server.

VB4-32,5,6
Declare Function FtpSetCurrentDirectory Lib "wininet.dll" Alias "FtpSetCurrentDirectoryA" (ByVal hFtpSession As Long, ByVal lpszDirectory As String) As Boolean

VB.NET
Not implemented

Operating Systems Supported
Requires Windows NT 4.0 or later; Requires Windows 95 or later

Library
Wininet

Parameter Information
- hConnect
[in] Valid HINTERNET handle to an FTP session.

- lpszDirectory
[in] 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 or a name relative to the current directory.

Return Values
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.

Last update: 07 April 2006