Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > MSDOS Programmer > Re: A batch fil...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 4 Topic 403 of 494
Post > Topic >>

Re: A batch file question...

by Dr John Stockton <jrs@[EMAIL PROTECTED] > Jun 8, 2006 at 10:50 PM

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.




 4 Posts in Topic:
A batch file question...
JoAnne <mwsoft@[EMAIL   2006-06-08 07:15:29 
Re: A batch file question...
Herbert Kleebauer <kle  2006-06-08 21:47:47 
Re: A batch file question...
Charles Dye <cdye@[EMA  2006-06-08 14:17:34 
Re: A batch file question...
Dr John Stockton <jrs@  2006-06-08 22:50:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 2:56:10 CDT 2008.