|
Answer» Greetings all. At work we use a 3270 emulator that comes with a VBA script player called VSPVBA.exe. I am wondering if anyone has heard of it, and if so, if anyone knows of a way to run it from a command prompt and have it execute a vba file passed in the command, rather than it opening a "OPEN Script File" dialog at which point I have to navigate to the VBA file I want to run. I know this is probably grabbing at straws, but I SURE would appreciate any help. We all use Windows 7 32 bit. Thank you.
GregWhat happens if at command prompt you enter the following?
VSPVBA.exe file_to_open.extension
The script file needs to reside in the root of where VSPVBA.exe is for this example. Replace file_to_open.extension with the script to launch.
BTW: I havent used this VSPVBA before, but this method works for other applications and may work for this as well.
In other applications it will launch the EXE and load the file associated with the launch INSTRUCTION if the EXE supports explicit execution of supported script files etc. ALSO if there are any spaces in the name of the files you sometimes have to bind the filename or PATH to file with " " such as VSPVBA.exe "file to open.extension"Thank you Dave for the assist. I managed to find a list of command line switches and found -s works. So, my command would be c:\netmanag.32\vspvba.exe -s filename.vba
This works like a charm.
GregGood to hear it worked with -s switch added in.
|