Try this:
"RUN;wscript.exe|c:\test.vbs"
How can I run a VBScript from a button? I tried Run, RunQ ect,
Would I need to use wscript.exe, and if so, how would I pass the parameters to it to load the script I want.
Let's say the VBScript file is named test.vbs
It would look SOMETHING like this:
"RUN;wscript.exe,c:\test.vbs"
(I know the syntax is wrong... as this does not work)
Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart
My Fiero Build Thread
Try this:
"RUN;wscript.exe|c:\test.vbs"
Jarrod - Holden VX S!
Jarrod Thanks! That did it, I tried a few variations, but never even concidered using a SINGLE Pipe (|), I did try the typical || thought.
Regardless, that works PERFECTLY, and NOW I can start doing some serious scripting! I am right at home with VBScript!
Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart
My Fiero Build Thread
From the Skin Commands.txt:
Code:OBS: Anywhere you can run an application you can also specify it's arguments, by using a pipe (|) symbol. Example: "RUN;C:\WINDOWS\NOTEPAD.EXE|c:\t.txt;NOTEPAD;NOTEPAD" (The same can be used within the Launch INI files)Glad it worked
Jarrod - Holden VX S!
Hehe I missed the OBS: section entirely.
I just found the RUN section, and it makes NO mention of that.
Code:"RUN" - Dynamic Commands: set the code of a button to: "RUN;COMMAND|PARAMETER1|PARAMETER2" will make it so clicking this button runs the specified command¶meters in the computer. As an option you can run the command specifying the application name to embed in the current screen (the application will be enbedded using the "A" settings in the skin file of screen: Example: "RUN;C:\WINDOWS\NOTEPAD.EXE;NOTEPAD" (to run embedded) "A,000,055,800,545,000,000,000" (.skin definition) Optionally you can also set the text to be "spoken" when clicking the button: Example "RUN;C:\WINDOWS\NOTEPAD.EXE;NOTEPAD;NOTEPAD"
Front End of Choice: Ride Runner (Is there anything else??? ) & Powered by the DFX5.1 Skin Available in the Mobile App Mart
My Fiero Build Thread
it does say: "RUN;COMMAND|PARAMETER1|PARAMETER2" hehe, which is what you wanted, just didnt explain the parameter part
either way, its working now! so who cares hehe
Jarrod - Holden VX S!
Bookmarks