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%3EBetreff%3A%20JSL%3A%20%C3%96ffnen%20Sie%20ein%20VBS-Skript%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-36336%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3ESie%20k%C3%B6nnen%20entweder%20die%20ausf%C3%BChrbaren%20WScript-%20oder%20CScript-Dateien%20verwenden%2C%20um%20eine%20VBScript-Datei%20mit%20RunProgram%20auszuf%C3%BChren.%20Der%20einzige%20Unterschied%20besteht%20darin%2C%20dass%20WScript%20Fehler%20in%20einer%20MessageBox%20anzeigt%2C%20w%C3%A4hrend%20CScript%20den%20Fehler%20in%20die%20Konsole%2FStdout%20schreibt.%3C%2FP%3E%0A%3CP%3EHier%20ist%20ein%20Beispiel%20mit%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%20%C3%96ffnen%20Sie%20ein%20VBS-Skript%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-36330%22%20slang%3D%22en-US%22%20mode%3D%22NONE%22%3E%3CP%3EHallo%20allerseits%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EGibt%20es%20eine%20M%C3%B6glichkeit%2C%20ein%20.vbs%20(Visual%20Basic-Skript)%20von%20einem%20JSL-Skript%20aus%20zu%20starten%3F%3C%2FP%3E%3CP%3EEs%20ist%20m%C3%B6glich%2C%20wenn%20ich%20eine%20.exe-Datei%20aus%20der%20VBS%20erstelle%20und%20sie%20mit%20%E2%80%9ERun%20Program()%E2%80%9C%20ausf%C3%BChre%2C%20aber%20aus%20technischen%20Gr%C3%BCnden%20bevorzuge%20ich%20die%20eigentliche%20Ausf%C3%BChrung%20der%20.vBS.%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%3EDanke%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EJan%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%3EAutomatisierung%20und%20Skripterstellung%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