JRS: In article <p2cg8293h6iatbd3iq37f7snivfdlrkoc8@[EMAIL PROTECTED]
>, dated
Thu, 8 Jun 2006 07:15:29 remote, seen in news:alt.msdos.programmer,
JoAnne <mwsoft@[EMAIL PROTECTED]
> posted :
>
>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?"
Yes. But there is a difference between what happens if the last line
has a newline at the end and if it does not. The OS may also matter; I
used Win98.
--
© John Stockton, Surrey, UK. ?@[EMAIL PROTECTED]
DOS 3.3, 6.20;
Win98. ©
Web <URL:http://www.merlyn.demon.co.uk/>
- FAQqish topics, acronyms &
links.
PAS EXE TXT ZIP via
<URL:http://www.merlyn.demon.co.uk/programs/00index.htm>
My DOS <URL:http://www.merlyn.demon.co.uk/batfiles.htm>
- also
batprogs.htm.


|