Michael, I use Visual Basic Script to delete files from within a macro.
I write a small txt file with a .vbs extention with the following commands.
Dim fso, MyFile
Set fso = CreateObject("Scripting.FileSystemObject")
Set MyFile = fso.GetFile("c:\temp\list.txt")
MyFile.Delete
The path and file name c:\temp\list.txt is changed to the file you want to
delete.
In your macro you use the SHELL command as per the example below.
SHELL[CMD_LN=STRTMP("wscript s:\smartcam\mcl\deletefile.vbs"), WA=0, DP=1]
wscript is the windows scripting executable.
s:\smartcam\mcl\deletefile.vbs is the location and name of the .vbs file
that you want to run.
Good luck.
-----Original Message-----
From: Michael Senack [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 7:37 AM
To: '[EMAIL PROTECTED]'
Subject: [mfg-smartcam] Macro help
I'm looking for a Macro Command that allows you to delete a file from within
SmartCAM.
ie: w:\job\hs0253b.sh2
Is there such a command?
Regards,
Michael Senack, CNC Programmer
Blount Canada Ltd
505 Edinburgh Road North
Guelph Ontario
N1H 6L4
519 822 6870 X354
FAX 519 822 1450
http://www.blount.com/
======================================================================
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]
======================================================================