My problem is when a virtual directory can not be created, I would like the user to try again with another name. But I can't seem to test when the script exits with error.
code snippet:
ClearErrorsend of vbscript:
nsExec::Exec /TIMEOUT=20000 '"$SYSDIR\cscript.exe" "$TEMP\createVDir.vbs"'
IfErrors success
MessageBox MB_OK "Virtual directory $serverVirtualDir could not be created!"
goto finish
If (E*****mber <> 0) ThenSo as far as I can see, if script fails to create virtual directory, the vbscript should exit with an error, and IfErrors should be pick this up.
WScript.Quit (E*****mber)
Can anyone tell me what I am not doing please?[