ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Net functions
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Warning
This function is kept for backward compatibility. It is recommended to use a standard FTP, SSH or SCP server. For more details, see Handling files on an FTP server and Standard FTP functions.
Lists the directories and the files found:
  • on the FTP (File Transfer Protocol) or RPC (Remote Procedure Call) server powered by WINDEV,
  • on the client computer.
Note: To enable or disable this function on an FTP/RPC server, use NetServerOption.
Example
ConnectRPC is int
ConnectRPC = NetConnect("148.61.125.245", RPCServer, "GUEST", "")
...
// Displays the list of directories and files on the server's C drive
Info(NetDirList(ConnectRPC, "C:\*.*"))
Syntax
<Result> = NetDirList([<Connection ID>, ] <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 ID>: 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).
Component: wd300com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 01/20/2025

Send a report | Local help