Michael,
 
I believe it is the variable in the statement.  Change the # to %. We open two files every time we code a file and it works fine, the statment is as follows.
SHELL[CMD_LN=STRTMP("notepad.exe %toolfile %tapefile"), WA=0, DP=0]
Hope this helps

Bill Wepking
Landis Gardner

-----Original Message-----
From: Michael Senack [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 8:19 AM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] Edit Plus file read macro question

I’m trying to get SC to shell out and load Edit Plus.

When I run C:\SM11\SHARED\wedplus.exe command I would like to know

if it is possible to load two files at once?

 

I’m trying to load the following two files C:\SM11\MILL\JOSRPT\REPORT.TXT and #FILE

in Edit Plus so I can print both of them in one session of Edit Plus.

Then when I’m done I Alt & F4 back into SC.

 

 

 

STRING: #FILE

 

PROMPT[TX="What is the Drive, Sub-directory and SmartCAM V4.5 File name\n

that you want to read?\n

Example:  W:\BO3000\BO3456A", VN="FILE"]

 

READ[FN=STRTMP("%FILE"), FT=0]// read in the .sh2 file

 

// this makes a tool sheet and saves it as REPORT.TXT

REPORT_STEP[SS=0, SB=0, IJ=1, FF="C:\\sm11\\MILL\\JOSRPT\\MSTEPRPT.FMT", OF="C:\\sm11\\MILL\\josrpt\\REPORT.TXT", OD=1]

 

// this shells to DOS and loads the REPORT file into Edit Plus so I can print it out for the operator

// when the report is printed press Alt+F4 to exit Edit plus and return to SC graphic screen again

SHELL[CMD_LN=STRTMP("C:\SM11\SHARED\wedplus.exe C:\SM11\MILL\JOSRPT\REPORT.TXT  #FILE"), DP=0, WA=0]  Hmmm…

 

 

It is the above SHELL command that is causing me the grief.

 

Regards,

Michael Senack

 

Reply via email to