Skip to content

File_RenameDir

Renames a directory

File_RenameDir(sOrgDirName, sNewDirName) As Boolean

Original directory name, with full path

New directory name, with full path

  • The original directory must exist. If it doesn’t, the function returns False.
  • If a directory with the new name already exists, the function returns False.
If bStatus Then bStatus = File_RenameDir("C:\CMS", "C:\CapaInstaller")

Scripting Guidelines

File_RenameFile Constants Package Property Variables