techjunkie.tv

powershell tips, ccna tips, tech videos, learn tech

How to disappear a Batch Script after running your Program —

Was up my techs, did you ever wonder how to make those old .bat files disappear by themselves so that the user would not have to close it themselve and maybe making a mistake and clicking on the shut down button!! Oh no yes that would be a disaster!! So yes the easiest thing just setup the script to clse the terminal window when it loads but after it opens the program. Here is what i have in my calculator.bat file:

start /b calc

Thats all just put that

start /b for start in background you got yourself the disappearing prompt :)

Let me know if this was helpful, the link to where I found this fix can be found here:

http://www.2brightsparks.com/bb/viewtopic.php?t=1717

 

 

SCOTT

http://twitter.com/scottalvarino

 


Categorised as: Windows



Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>