Try this..
 
@STAR
CODE[FN=STRTMP("C:\\sm9\\turn\\star\\%#V2"),
MS1="C:\\sm9\\turn\\atsmf\\star.smf",
MT1="C:\\sm9\\turn\\atsmf\\star.tmp", SH=0, DC=0, ST=0, DT=0,SP=9]
IF(#YESNO=0)
GOTO(LABEL)
ENDIF
// THIS WILL OPEN UP THE TEXT EDITOR AND GET THE FILE FROM YOUR DIRECTORY
SHELL[CMD_LN=STRTMP("C:\ultraedit\uedit32.exe C:\\sm9\\turn\\star\\%V2"), WA=0, DP=1]
@LABEL
#YESNO=""
#FILE_NAME=""
#EXTN=""
GOTO(END)
 
Of course, you have to change the path to your editor.  the first path is to the editor and the second path is where your file is stored at.
  Rick
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 05, 2001 10:38 AM
To: [EMAIL PROTECTED]
Subject: [mfg-smartcam] Automatically open coded file

I have been working on this Macro and is there away to have the Edit-Plus
open up the file that I have named?
 
This Marco is used to run two *.tmp files and then open up Edit Plus.
I type in the Job number witch is the same as the File name that is saved in the
SmartCam mdate directory.
Type in a Program number for the coded file.
 
Is there away to have the Shell open the named file?
 
// Macro File
STRING:#FILEN
STRING:#JOB

PROMPT[TX="What is the name of the Job Files?",VN="JOB"]
 
PROMPT[TX="CODE FOR FANUC CONTROL.         
    WHAT IS THE NAME OF THE OUTPUT FILE FOR THE NC CODE?",VN="FILEN"]

CODE[FN="C:\\SM11\\MILL\\MDATA\\Coded_files\\ENGLISH-TOOLLIST", MF="O:\\2000-jof\\Eng_SM11.Smf",
 TF="O:\\2000-jof\\LIST_ENG.Tmp", SH=0, DC=1, RP=0, ST=0,
    DT=0, SP=9]

CODE[FN=STRTMP("C:\\SM11\\MILL\\MDATA\\%#JOB\\%#FILEN"),
   MF="O:\\2000-jof\\Eng_SM11.Smf",
  TF="O:\\2000-jof\\LsE_SM11.Tmp", SH=1, DC=1, RP=0, ST=0,
    DT=0, SP=9]

#FILEN=""
PAUSE[TX="The Coded File is in the Job Folder.
    EDIT PLUS WILL OPEN AUTOMATICLY. ",
SR=3,SC=30,PT=3]
 
     STRING:#PATH
     STRING:#FILENAME
     #PATH=c:\sm11\shared\
     #FILENAME=wedplus.exe
     SHELL[CMD_LN=STRTMP("%PATH%FILENAME"), WA=0, DP=0]
Thanks 
 
Brock

Reply via email to