Subscribe Bookmark RSS Feed

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

jason_paquette

Community Trekker

Joined:

Jan 26, 2015

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
Solution

The option you want is /shellopen

Try this:

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

John

3 REPLIES
jason_paquette

Community Trekker

Joined:

Jan 26, 2015

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...

Solution

The option you want is /shellopen

Try this:

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

John

jason_paquette

Community Trekker

Joined:

Jan 26, 2015

Awesome.

"/shellopen" worked!

Thank you,

JP