Appendix: Built-in Scripting Language The path of the directory that will be checked. Returned value Notes Caution: This function executes synchronously, which means that the project pauses while it waits for the function to return. As such, if the specified directory is unusually large, then the project could be paused for several seconds while size of the directory is calculated. Examples DirRename Renames directories. Syntax DirRename( strPath , strDirectoryFrom , strDirectoryTo ) 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 Examples FileCopy Copies the file(s) configured in the strSourceFile parameter to the path/file configured in the strTargetFile parameter. InduSoft Web Studio Page 523 −2 Directory does not exist. −1 Invalid parameters n Size (in bytes) of the files and sub-folders in the directory Tag Name Expression Tag DirLength("C:\Studio") // Returns the size (in bytes) of all files and sub-folders from C:\Studio.
Function Group Execution Windows Embedded Thin Client DirRename File Synchronous Supported Supported Executed on Server −1 Invalid parameters 0 Failed to rename the directory (e.g., strDirectoryFrom does not exist.) 1 Directory renamed successfully. Tag Name Expression Tag DirRename("C:\Studio\","Temp", "New") // C:\Studio\Temp is renamed to C:\Studio\New. Function Group Execution Windows Embedded Thin Client FileCopy File Synchronous Supported Supported Supported