Günter Mangold Posted May 8, 2004 Report Posted May 8, 2004 Hello Referring to FSUIPC Advanced Users.doc, Programs: facilities to load and run additional programs. (I'm plain user of registered FSUIPC, not advanced) In FSUIPC.ini I added [Programs] runif1=READY,C:\Programme\S-Combo\S-Combo.exe and it works flawlesly. However S-Combo requires aditionally an ENTER. So I made a little Windows Scripting Host Prog that executes S-Combo and clicks RETURN. I changed the FSUIPC.ini [Programs] runif1=READY,D:\my prog.vbs This produces FSUIPC Error=193 What kind of error is 193 Any help? Günter
Pete Dowson Posted May 8, 2004 Report Posted May 8, 2004 So I made a little Windows Scripting Host Prog that executes S-Combo and clicks RETURN. I changed the FSUIPC.ini [Programs] runif1=READY,D:\my prog.vbs This produces FSUIPC Error=193 What kind of error is 193 Well, apart from the fact that I've never heard of this scripting (is this new in WinXP?), all FSUIPC does is run the program by calling Windows with a "CreateProcess" API call. I would guess that this always needs an EXEcutable program to place into the process. The error number is the one returned by Windows. Looking it up I find: 193not a valid Win32 application. ERROR_BAD_EXE_FORMAT which confirms that a VBS file is not an executable program. I assume that there is a process (EXE) you can call to execute a VBS file, but I don't know what it is. With DOS BAT type files you had to do this sort of thing by running COMMAND.COM with the BAT filename given in the same command line after a /C: switch (I think! My memory is failing these days!). Regards, Pete
Günter Mangold Posted May 8, 2004 Author Report Posted May 8, 2004 Guten Tag Pete never heard of this scripting (is this new in WinXP?), http://msdn.microsoft.com/library/defaud=28001169 All I can say is, a .vbs is executed (doubleclick) like any other .exe application and it does what the programmer intended - if the code is ok. I'll try somehow to find a way. Thanks Günter
Pete Dowson Posted May 8, 2004 Report Posted May 8, 2004 All I can say is, a .vbs is executed (doubleclick) like any other .exe application and it does what the programmer intended - if the code is ok. Yes, but so is a text file or a DOC, etc, etc. All that happens is that certain applications are associated to certain filetypes, and it is the associated application which is loaded and run. All you need to do is find the name of the application which is run to execute a .vbs, and run that with your vbs file as its parameter. Regards, Pete
UAL45 Posted May 9, 2004 Report Posted May 9, 2004 Gunter, Try making the VBS project into an EXE. Make X.exe (where x is your project name) is found under the "File" menu item. Then execute the program the VB Compiler creates. Regards, Brian
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now