[Guide] Putting a little delay into your .bat files and stuff.
Hello, I know this has been released before, but There might be just something I could add, I made my pc like when I start up my pc it automaticly turn on:
- Hamachi (my server requires Hamachi)
But since my server starts up a lot faster than that my wamp is done with loading I searched for a solution:
The delay for a batch file!
Here is the script:
PHP Code:
@echo off
title OdinMS: inactive
color 1c
color 4c
title Waiting on the delay
dir c:\ /s > nul
title OdinMS: activating 0/3
start /b launch_world.bat
title OdinMS: activating 1/3
ping localhost -w 10000 >nul
start /b launch_login.bat >nul
title OdinMS: activating 2/3
ping localhost -w 10000 >nul
start /b launch_channel.bat >nul
title OdinMS: activating 3/3
ping localhost -w 10000 >nul
color 2a
title TrueStory is online!!
----------------------------------------------------------------------------------------------------------------------------------
How to instal?
- Save as Launcher.bat or anything els that ends in .bat
- Place this file into your repack map where you login world and channel.bat files are.
- Double click the file and wait for your server to start (with delay)
99% Credits to AgentSmith (I though) Who made this.
1% Credit to me for the delay (please dont flame?:*:)
Added how to start al programs when starting up the pc:
you go to C:\Documents and Settings\username\Menu Start\Programs\start-up (I'm not 100% sure these are the names for it because my pc is dutch), but anyway it should be something like this. Now you see some diffrent things already , if not so, paste in your wamp icon, Hamachi icon and the bat file and restart your pc to test it out.
If you want a longer delay then search for "dir c:\ /s > nul" and add more of them.
Re: [Guide] Putting a little delay into your .bat files and stuff.
If this is a guide, shouldn't it be in the tutorial section?
o.O
Re: [Guide] Putting a little delay into your .bat files and stuff.
Wrong section?
for a guide
Re: [Guide] Putting a little delay into your .bat files and stuff.
Re: [Guide] Putting a little delay into your .bat files and stuff.
Can you all shut up about "wrong section" it was said 3times, and does not to be repeated again. He released the part of where you put it in a .bat file didn't he? So its just a release with a guide in it(Which every release should have.)
Re: [Guide] Putting a little delay into your .bat files and stuff.
Lol,, i said it was a wrong section,,
if its a guide
but its a release/guide
so it cant be wrong section
Re: [Guide] Putting a little delay into your .bat files and stuff.
how did u make the wampserver start automatic?
Re: [Guide] Putting a little delay into your .bat files and stuff.
Good job faithless. So you added a delay for starting up the server for the wamp server, correct? But don't you have to manually start wamp server? :\
Re: [Guide] Putting a little delay into your .bat files and stuff.
Quote:
Originally Posted by
CarterFTWWW
Can you all shut up about "wrong section" it was said 3times, and does not to be repeated again. He released the part of where you put it in a .bat file didn't he? So its just a release with a guide in it(Which every release should have.)
Thank you.... it had to be told....
Re: [Guide] Putting a little delay into your .bat files and stuff.
Everything starts manualy for me I could just add it into the tutorial part :)
Re: [Guide] Putting a little delay into your .bat files and stuff.
its a release guide now stfu people who dont aprreiciate it
its a ncie relase GOOD JOB !
Re: [Guide] Putting a little delay into your .bat files and stuff.
Lol, this is just plain obvious and i think people know how to do this. In addition, there is a reason most releases are the way they are, no point changing the delay xD its a tutorial btw. Nice work though...
Re: [Guide] Putting a little delay into your .bat files and stuff.
It's a release with a guide tag...
Re: [Guide] Putting a little delay into your .bat files and stuff.
No clue what this is for woot :D
Re: [Guide] Putting a little delay into your .bat files and stuff.
lol, maybe if you read it a little you could understand ;)