Lists the directories and the files found:
- on the FTP server (File Transfer Protocol) or on the RPC server (Remote Procedure Call) powered by WINDEV,
- on the client computer.
: To allow (or not) the use of this function on an FTP/RPC server, call NetServerOption
ConnectRPC is int
ConnectRPC = NetConnect("188.8.131.52", RPCServer, "GUEST", "")
// Displays the list of directories and files found on the C drive: of the server
<Result> = NetDirList([<Connection identifier>, ] <Name of Home Directory>)
<Result>: ANSI character string
List of directories and files (with their size) found on the server or on the client computer. This result has the following format:
<Directory1> + TAB + <Directory2> + TAB + ... + TAB + <DirectoryN> + CR + ...
<File1/Size of File 1 in KB> + TAB + <File2/Size of File 2 in KB> + ...
TAB + ... + TAB + <FileN/Size of File N in KB>
<Connection identifier>: Optional integer
Identifier of the connection for the client computer (returned by NetConnect). If this parameter is not specified, NetDirList returns the list of directories and files on the current client computer
<Name of Home Directory>: ANSI character string
Directory of the server or client computer whose files and sub-directories must be listed. The filter used for the search must be specified (*.* for example, .).