Subscribe Bookmark RSS Feed

How to fully exit JMP when using .bat to run .jsl script

rainwang

Community Trekker

Joined:

Apr 21, 2016

When use .bat to run one jsl file, I can close all the data tables using script in JSL file, while at the end the JMP home window still there, can't exit automatically.

when use older JMP version like JMP9, no such issue.

the contents of .bat and .jsl are as below:

the .bat file

11563_pastedImage_0.png

the .jsl file, just very simple script to do datatable update.

11567_pastedImage_1.png

After double click the .bat file, the jsl run normally, only the JMP home window can't exit automatically. becuase the JMP still open, so the windowns cmd window also can't close automatically.  Not sure if anybody suffer the same issue. Does anyone know how can close the JMP home windowns automatically?

11568_pastedImage_2.png

3 REPLIES
Jeff_Perkinson

Community Manager

Joined:

Jun 23, 2011

Try Exit(); or Quit(); at the end of your JSL script.

-Jeff
Jeff_Perkinson

Community Manager

Joined:

Jun 23, 2011

PS: The Scripting Index is your friend.

11569_JMPScreenSnapz018.png

-Jeff
rainwang

Community Trekker

Joined:

Apr 21, 2016

Thank Jeff!