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 3 of 4 Topic 403 of 494
Post > Topic >>

Re: A batch file question...

by Charles Dye <cdye@[EMAIL PROTECTED] > Jun 8, 2006 at 02:17 PM

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]





 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:26 CDT 2008.