DirRename

Renames directories.

Function Group Execution Windows Embedded Thin Client Mobile Access
DirRename File Synchronous Supported Supported Executed on Server Not supported

Syntax

Web Studio Help s2fr function file dirrename.xml d120056e76 DirRename

strPath
The path of the directory that will be renamed.
Tip: This function supports wildcard ( * and ? ).
strDirectoryFrom
The original name of the directory that will be renamed.
strDirectoryTo
The target name used to rename the original directory.

Returned value

−1 Invalid parameters
0 Failed to rename the directory (e.g., strDirectoryFrom does not exist.)
1 Directory renamed successfully.

Examples

Tag Name Expression
Tag DirRename(“C:Studio”,”Temp”, “New”) // C:StudioTemp is renamed to C:StudioNew.  

DirRename