Open CSV with JMP via batch script without opening new JMP window<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />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
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
Re: Open CSV with JMP via batch script without opening new JMP windowI 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
Re: Open CSV with JMP via batch script without opening new JMP windowAwesome.
"/shellopen" worked!
Thank you,
JP
Re: Open CSV with JMP via batch script without opening new JMP windowThe 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 windowI 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
Didn't seem to do the trick for me on Windows though...