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
The option you want is /shellopen
Try this:
start jmp.exe /shellopen "C:\my data\csv_file.csv"
John
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...
The option you want is /shellopen
Try this:
start jmp.exe /shellopen "C:\my data\csv_file.csv"
John
Awesome.
"/shellopen" worked!
Thank you,
JP
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