Limit number of servers
Who knows how I can do some limit to file .bat to can't be opened more servers if I write wrong, 999999 to be opened 20 for example maxim.
Code:
set /p max_servers= How many servers would you like to start? (Ex 5) -> this is start line When I execut the file "start.bat", and there will ask how many servers, and if I write more than "X servers" do not allow or to open a maximum of ... |
Re: Limit number of servers
This do not make sense, what you exactly try to do here?
|
Re: Limit number of servers
I sayd before, I want to open more servers suddenly.
So how can I do it to that command not open more? |
Re: Limit number of servers
You can do a loop in bat file, but why you will put a wrong number in an .bat file?
|
Re: Limit number of servers
I don't know very well where to do a loop, but didn't work properly.
Not in a .bat file to put wrong number, when I execute .bat file is problem and ask how many servers to start. If I write there 99999 is opened 99999 hlds servers. Code:
@echo off I want to do some limit, but to ask me how many servers to start. For example, if I write to that question 999 servers, to start maximum limited (for example 10 servers). |
Re: Limit number of servers
https://stackoverflow.com/questions/...ch-script-loop
Here have an example how you can make a loop, but if i understand correctly your script, also you need to auto-restarter app in script |
Re: Limit number of servers
Can you make that code for me, please?
Not necessarily auto-restart, for what? |
Re: Limit number of servers
1 Attachment(s)
Quote:
I have made a app in C# to start my servers automatically, you can download it here. Basically is designed to run apps (In windows) and you can adjust parameters, delay from start etc. |
Re: Limit number of servers
I want source, can you give please?
|
Re: Limit number of servers
Quote:
|
All times are GMT -4. The time now is 10:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.