Description
The ExistDir
function checks for the existence of the specified directory.
Syntax
ret = ExistDir(<directoryname>)
Parameters
<directoryname>
, string, name of the directory to test. A path can be included in <directoryname>
.
Return Value
ret
, numeric return code; if the directory exists, the return code is set to 1, otherwise 0. If the path specified in <directoryname>
is not valid, the return code is 0. If <directoryname>
is in fact a filename, the return code is 0.
See Also
Exist
Examples
ret = ExistDir(WinDir$())
msgbox(ret)
ret = ExistDir("C:\\program files\\wintask")
msgbox(ret)