Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Check for directory existence

 


Syntax

File_ExistDir(sDirectory, bMustExist) As Boolean

 


Parameters

sDirectory (String)

...

bMustExist (String)

Directory must exist

 


Return value

Result will be stored in gbValue. Function will return false if directory does not exist and bMustExist is true 


Example

Code Block
languagevb
themeEclipse
languagevb
titleVBScript
If bStatus Then bStatus = File_ExistDir("C:\CapaInstaller", False)
If bStatus and Not gbValue Then bStatus = File_CreateDirectory("C:\CapaInstaller")

Scripting Guidelines 


Related functions

File_CreateDirectory File_CopyTree