On Thu, 08 Jun 2006 07:15:29 -0700, JoAnne <mwsoft@[EMAIL PROTECTED]
> wrote:
>Is it possible to write a line of code in a .bat file, one that would
>be in the LAST line of the file, and would cause the .bat file to
>DELETE itself as a "last step?"
In 4DOS you can do:
loadbtm on
del %_batchname
quit
It's not even necessary for this to be the last step. Omit the QUIT,
and the batch file will continue with the commands following the DEL.
This won't work in COMMAND.COM, of course. But with 4DOS now
freely available, there seems little point in continuing to use
COMMAND.COM
anymore.
--
Charles Dye raster@[EMAIL PROTECTED]


|