Is there a script command to suppress the error message if a script fails? For example, I have this script for a toolbar button...
goto "Z:\"
...but it gives an error when there is no Z: drive. I don't want to see the error message popup. I just want it to auto cancel or auto continue. Is there a way?
Script command to suppress error message?
-
Stefan
- Posts: 1360
- Joined: 18 Nov 2008 21:47
- Location: Europe
Re: Script command to suppress error message?
Code: Select all
exists()
Checks whether a file or directory exists.
Syntax
exists(item)
item: Full path (local or UNC) to a file system item.
return: 0 = does not exist
1 = exists (file)
2 = exists (folder; drive; share; server)
if (exists("Z:\") == 2){ goto "Z:\"; }
XYplorer Beta Club