Here is one way of doing it...

// Advanced_Wedm 11.5 Windows 10/16/98 16:48:10 Macro File
//
//  w:\mcl\df.mcl
//  This Delete File macro does just that...
//   It deletes what ever file you type in.
//   If there is no file by that name that you specify
//   then it tells you that it cannot find it
//   and to try again.
//
//PAUSE[TX="The so far so good macro pause!", LR=10, LC=5, SR=2, SC=40,
PT=1]

VAR_REMOVE_ALL[]

STRING: #DELETE_FILE
PROMPT[TX="Enter the Drive, Path and File name of the file you want to
delete.\n
ie: W:\SHIMS\DIE241\103AA.IGS",  SR=2, SC=50, VN="DELETE_FILE"]

// if a file exists under the DELETE_FILE name then delete it
#EXISTS=F_EXIST(STRTMP("%DELETE_FILE"))
IF( #EXISTS=1 )
   SHELL[CMD_LN=STRTMP("del %DELETE_FILE"), WA=1, DP=1]
PAUSE[TX=STRTMP("Congratulations! You have just deleted...\n
%DELETE_FILE. "), SR=2,  PT=1]

ELSE
PAUSE[TX=STRTMP("Sorry Skippy! No file by the name of...\n
%DELETE_FILE exists. Try again! "), SR=2,  PT=1]

ENDIF



-----Original Message-----
From: Zen [mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 11, 2004 10:06 AM
To: Mfg-Smartcam-Group
Subject: [mfg-smartcam] SmartCAM Macro Question

Does anyone know if you can delete a file using a macro?

I.E Is there a function F_DELETE ?

Thanks in anticipation.

Mike Smith
(Prime Technologies Ltd)
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.615 / Virus Database: 394 - Release Date: 08/03/2004

======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

======================================================================
To find out more about this mailing list including how to unsubscribe,
send the message "info mfg-smartcam" to [EMAIL PROTECTED]
======================================================================

Reply via email to