Exist 1.0a
Novell Cool Solutions: Cool Tool
Reader Rating
from 11 ratings
In Brief
Check for the existence of a file in a script.
Vitals
| Posted: | 11 Dec 2002 |
| File Size: | 11KB |
| License: | Free |
| Download: | /coolsolutions/tools/downloads/exist.zip |
| Home Page: | http://www.pedago.fi/ |
| Publisher: | Anders Gustafsson |
Disclaimer
Please read the note from our friends in legal before using this file.
Details
Usage:
Copy the executable into sys:public or other suitable directory in the path and add the following line to the loginscript or application startup script:
#exist d:\autorun.inf
This will check if the file d:\autorun.inf exists. If the file exists it will return an ERROR_LEVEL of "0", non-zero otherwise.
You can use this in a creative way to give ZENworks 2-like qualities to ZEN1.x:
#F:\public\exist.exe E:\adobe\eurofont.exe
if ERROR_LEVEL!="0" then begin
#F:\public\box.exe 36;Error!;You need to insert the CD marked"Adobe" to run this program
TERM "0"
end
As usual I take no responsibility for what you do with this program. Comments are welcome, address them to dalton@pedago.fi.
New in Version 1.0a:
Fixed some issues with long paths on Win2000 and 98SE.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
Reader Comments
- ThanX Anders
- Problem solved (is there a better comment)
- Exactly what the doctor ordered!
- A godsend