Error 2 means file not found.
You need to give the fulle path to the CheckoutCtrl.INF file like so:

Code:

....
if FileAction("O:\Utilities\Lexis\CheckoutCtrl_W2K\CheckoutCtrl.INF", "Install")
....



or depending on Win2k or WinXP

Code:

....
if FileAction("O:\Utilities\Lexis\CheckoutCtrl_WXP\CheckoutCtrl.INF", "Install")
....




You could put almost the entire script inside and If-Else-Endif or Select-Case-Endselect statement instead of the gosub stuff. GoTo and GoSub make spaghetti code that is difficult to read and to follow the flow of the script. This is just a small script but guess what happens when it becomes bigger and bigger and bigger…….

System error codes on the MS site.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.