cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-36336%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3ERe%3A%20JSL%3A%20Abrir%20un%20script%20VBS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-36336%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EPuede%20usar%20los%20ejecutables%20WScript%20o%20CScript%20para%20ejecutar%20un%20archivo%20VBScript%20usando%20RunProgram.%20La%20%C3%BAnica%20diferencia%20es%20que%20WScript%20mostrar%C3%A1%20errores%20en%20un%20cuadro%20de%20mensaje%2C%20mientras%20que%20CScript%20escribe%20el%20error%20en%20la%20consola%2Fsalida%20est%C3%A1ndar.%3C%2FP%3E%0A%3CP%3EAqu%C3%AD%20hay%20un%20ejemplo%20usando%20CScript.%3C%2FP%3E%0A%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Erp%20%3D%20RunProgram(%20Executable(%20%22CSCRIPT.EXE%22%20)%2C%20Options(%20%22%5C!%22C%3A%5CrunMe.vbs%5C!%22%22%20)%2C%20Read%20Function(%20%22text%22%20)%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-36330%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3EJSL%3A%20abre%20un%20script%20VBS%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-36330%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHola%20a%20todos%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%C2%BFHay%20alguna%20manera%20de%20iniciar%20un%20.vbs%20(script%20b%C3%A1sico%20visual)%20desde%20un%20script%20jsl%3F%3C%2FP%3E%3CP%3EEs%20posible%20si%20creo%20un%20archivo%20.exe%20desde%20vbs%20y%20lo%20ejecuto%20con%20Run%20Program()%2C%20pero%20debido%20a%20razones%20t%C3%A9cnicas%2C%20prefiero%20ejecutar%20el%20.vbs%20real.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CPRE%3ERun%20Program%20(Executable(%22c%3A%5Cpath%5CVbsAsExe.exe%22))%3B%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGracias%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EEne%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-36330%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CLINGO-LABEL%3EAutomatizaci%C3%B3n%20y%20secuencias%20de%20comandos%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Choose Language Hide Translation Bar
jan_solo
Level III

JSL: Open a VBS script

Hi everyone,

 

Is there a way to start a .vbs (visual basic script) from a jsl-script?

It is possible if I make an .exe file from the vbs and run it with Run Program(), but due to tech reasons, I prefer to run the actual .vbs.

 

Run Program (Executable("c:\path\VbsAsExe.exe"));

 

Thanks,

 

Jan

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: JSL: Open a VBS script

You can use either the WScript or CScript executables to run a VBScript file using RunProgram. The only difference is that WScript will show errors in a MessageBox, whereas CScript writes the error to the console/stdout.

Here is an example using CScript. 

rp = RunProgram( Executable( "CSCRIPT.EXE" ), Options( "\!"C:\runMe.vbs\!"" ), Read Function( "text" ) );
Justin

View solution in original post

1 REPLY 1

Re: JSL: Open a VBS script

You can use either the WScript or CScript executables to run a VBScript file using RunProgram. The only difference is that WScript will show errors in a MessageBox, whereas CScript writes the error to the console/stdout.

Here is an example using CScript. 

rp = RunProgram( Executable( "CSCRIPT.EXE" ), Options( "\!"C:\runMe.vbs\!"" ), Read Function( "text" ) );
Justin

Recommended Articles