cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Summary: Outside program from Pro/I

Newbie

Summary: Outside program from Pro/I

Thanks to Janet who gave me exactly what I needed -- the few simple
lines of Java code that you can add into your Pro/INTRALINK recorded
script to call another program.

I simply added the following lines at the end of the recorded section of
my Pro/I script:

Runtime rt = Runtime.getRuntime();
Process proc = rt.exec("command");

Where I put the absolute pathname to my DOS script in place of
"command". Note that the double quotes are required, and that you must
use forward slashes for directory delimiters instead of backslashes.
Announcements
LiveWorx Call For Papers Happening Now!