cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar

Open CSV with JMP via batch script without opening new JMP window

Hello,

I figured out that I could force a CSV to open with JMP via a batch script with the following skeleton code:

START "" JMP.exe <CSV_FILE>

Where "" apparently is the magic parameter to force the CSV to open with JMP instead of its default program (Excel).

My question is, if JMP is already open (prior to running the batch script), is there a way for the batch script to force JMP to open the CSV into the JMP window that is already open and not into a new window/instance?

Not sure if the JMP.exe has command-line parameters that might be able to allow for this.

It is more of a nice-to-have as my script does what I need. It would make things a bit less cluttered.

Thanks,

JP

1 ACCEPTED SOLUTION

Accepted Solutions
jschroedl
Staff

Re: Open CSV with JMP via batch script without opening new JMP window

The option you want is /shellopen

Try this:

start jmp.exe /shellopen "C:\my data\csv_file.csv"

John

View solution in original post

4 REPLIES 4

Re: Open CSV with JMP via batch script without opening new JMP window

I found this under a Linux command-line option reference:

33383 - JMP Linux command line options

Apparently passing "--singleton" as a command-line parameter prior to the filename allowed for files to open in the same JMP window.

i.e. JMP.exe --singleton <FILE_NAME>

Didn't seem to do the trick for me on Windows though...

jschroedl
Staff

Re: Open CSV with JMP via batch script without opening new JMP window

The option you want is /shellopen

Try this:

start jmp.exe /shellopen "C:\my data\csv_file.csv"

John

Re: Open CSV with JMP via batch script without opening new JMP window

Awesome.

"/shellopen" worked!

Thank you,

JP

JT383
Level I

Re: Open CSV with JMP via batch script without opening new JMP window

I would like to open CSV files from file explorer in JMP using the same instance.  I have set the file association and the registry

Computer\HKEY_CLASSES_ROOT\JMP.App\Shell\Open\command value is

C:\Program Files\SAS\JMP\15\jmp.exe /shellopen "%1"

 

That is, it already includes the /shellopen

Yet, every CSV file I double-click in File Explorer opens a new instance of JMP