Batch file only runs at command prompt. Run through Explorer causes obscure error.
Posted on 2003-11-12
I haven't tried other batch files on our customers server yet, but a simple batch file that runs INSTALL.EXE (a VB app) with a few parameters, where all files are located in the same folder, causes a type of "file not found" error with the exact verbiage of :
"Cannot find the file 'C:\temp\xxxxx.bat' (or one of its components). Make sure the path and filename are correct and that all required libraries are available."
How can it not FIND the file when I'm double-clicking on it to generate this message LOL. The account is Administrator and the files do not have any special security on them. If I install the program on my own workstation using various operating systems including Windows 2000 they work fine. This is our only customer who's run into this so far. In all my years of experience (18+) I haven't run across this before. It seems as if there's something affecting the OS as to not let it run BAT files from within the OS.
If I shell out to a command prompt and CD to the directory to run the BAT file, it works fine. This would normally be a perfectly fine work-around, but I feel that the root cause is affecting one of my other VB apps that also shells to DOS to run instructions.