• Do something before a batch file closes?
    4 replies, posted
Is there a way to do something in a batch file just before it closes? I want to load a webpage once a batch file is ended. I understand you might suggest just putting the command at the end of the batch file but I don't think this will work in this situation as I'm using a batch file to run a minecraft server and want to do something when the server is closed and the batch file ends.
Call that batch file from another batch file!
Think you could point me towards a tutorial? I really don't know a lot about batch files and it would be nice if you could provide the "code".
Say, you have your minecraft.bat file. Make a new file called watchdog.bat: [code] @echo off call minecraft.bat echo This will run after minecraft.bat is done pause [/code] You can also replace call with start to open minecraft.bat in a separate window.
Thank you for all the help. All I need to do now is find a new video to replace nyan cat on this page. [url]http://squidgytriangles.co.uk/ipplz/index.php[/url] Any suggestions?
Sorry, you need to Log In to post a reply to this thread.