cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
BHarris
Level VII

Open file using batch script

I have a linux application that generates text data tables that we study with JMP.  I'd like to be able to open these files in JMP with a hotkey.

 

I was thinking of writing the filename to a standard location, then using a batch script to open the file in the currently-running JMP.

 

I've tried a batch file with this:

 

FOR /F "tokens=*" %%I IN (\\server\path\to\file\with\path\to\text\file\to\open) DO @"C:\Program Files\SAS\JMP\12\jmp.exe" %%I

pause

 

... but the batch script launches a new instance of JMP.  Is there a way to open the text file in the currently-running JMP application?

1 ACCEPTED SOLUTION

Accepted Solutions
BHarris
Level VII

Re: Open file using batch script

Found the answer:  add "/shellopen" between the jmp.exe and the %%I.

 

Hope this helps someone.

View solution in original post

1 REPLY 1
BHarris
Level VII

Re: Open file using batch script

Found the answer:  add "/shellopen" between the jmp.exe and the %%I.

 

Hope this helps someone.

Recommended Articles