Jump to content

De Ce Nu Se Deschide Fisierul .bat ?


alexinio3d

Recommended Posts

Salutare ....

Am niste redirecte pentru server de counter strike 1.6 si vreau sa ii fac un fisier bat care sa seteze in server.cfg si in NovuslinkRedirect.cfg niste linii,dar dupa ce am terminat de scris fisierul si lam salvat nustiu de ce nu se deschide.

Acesta ii fisieru scris de mine

@rem ----- ExeScript Options Begin -----

@rem ScriptType: console

@rem DestDirectory: current

@rem CompanyName: BlackGames Romania

@rem ----- ExeScript Options End -----

@echo off

if not exist configurare.bat goto INDEX

if exist configurare.bat GOTO EXECUTE


:INDEX

cls

echo +--------------------------------------------------+

echo |--------------------------------------------------|

echo |   BlackGames Romania by whisky | Ultimu Tango    |

echo |--------------------------------------------------|

echo |--------------------------------------------------|

echo |             http://www.blackgames.ro             |

echo |--------------------------------------------------|

echo |--------------------------------------------------|

echo |  Versiunea 1.00 - redirecteaza protocol 47 + 48  |

echo |--------------------------------------------------|

echo +--------------------------------------------------+

echo.

echo.

set /p nume= Nume admin : 

set /p host_name= Nume redirect ( hostname ) : 

echo @echo off >> configurare.bat

echo nume=%nume% >> configurare.bat

echo host_name=%host_name% >> configurare.bat

GOTO EXECUTE


:EXECUTE

cls

echo +--------------------------------------------------+

echo |--------------------------------------------------|

echo |   BlackGames Romania by whisky | Ultimu Tango    |

echo |--------------------------------------------------|

echo |--------------------------------------------------|

echo |             http://www.blackgames.ro             |

echo |--------------------------------------------------|

echo |--------------------------------------------------|

echo |  Versiunea 1.00 - redirecteaza protocol 47 + 48  |

echo |--------------------------------------------------|

echo +--------------------------------------------------+

echo.

echo.

call configurare.bat nume host_name

echo Nume admin %nume%

echo Nume redirecte %host_name%

echo.

echo ------------------------------------------------------------------------

echo ------------------------------------------------------------------------

echo # netsh firewall add portopening UDP 27000 BlackGames-Redirect-27000UDP

netsh firewall add portopening UDP 27000 BlackGames-Redirect-27000UDP

echo # netsh firewall add portopening UDP 27001 BlackGames-Redirect-27001UDP

netsh firewall add portopening UDP 27001 BlackGames-Redirect-27001UDP

echo # netsh firewall add portopening UDP 27002 BlackGames-Redirect-27002UDP

netsh firewall add portopening UDP 27002 BlackGames-Redirect-27002UDP

echo # netsh firewall add portopening UDP 27003 BlackGames-Redirect-27003UDP

netsh firewall add portopening UDP 27003 BlackGames-Redirect-27003UDP

echo # netsh firewall add portopening UDP 27004 BlackGames-Redirect-27004UDP

netsh firewall add portopening UDP 27004 BlackGames-Redirect-27004UDP

echo # netsh firewall add portopening UDP 27005 BlackGames-Redirect-27005UDP

netsh firewall add portopening UDP 27005 BlackGames-Redirect-27005UDP

echo ------------------------------------------------------------------------

echo ------------------------------------------------------------------------


del cstrike\server.cfg

del cstrike\addons\amxmodx\configs\NovuslinkRedirect.cfg









echo +--------------------------------------------------+ >> cstrike\server.cfg

echo |--------------------------------------------------| >> cstrike\server.cfg

echo |                  Server.cfg                      | >> cstrike\server.cfg

echo |--------------------------------------------------| >> cstrike\server.cfg

echo +--------------------------------------------------+ >> cstrike\server.cfg

echo

echo

echo echo hostname "%host_name%" >> cstrike\server.cfg

echo sv_lan 0 >> cstrike\server.cfg

echo mp_timelimit 0 >> cstrike\server.cfg

echo host_framerate 0 >> cstrike\server.cfg

echo log off >> cstrike\server.cfg

echo sv_minrate 1000 >> cstrike\server.cfg

echo sv_maxrate 1000 >> cstrike\server.cfg

echo sv_minupdaterate 10 >> cstrike\server.cfg

echo sv_maxupdaterate 10 >> cstrike\server.cfg

echo >> cstrike\server.cfg

echo >> cstrike\server.cfg

echo +--------------------------------------------------+ >> cstrike\server.cfg

echo |--------------------------------------------------| >> cstrike\server.cfg

echo |   BlackGames Romania by whisky | Ultimu Tango    | >> cstrike\server.cfg

echo |--------------------------------------------------| >> cstrike\server.cfg

echo |--------------------------------------------------| >> cstrike\server.cfg

echo |             http://www.blackgames.ro             | >> cstrike\server.cfg

echo |--------------------------------------------------| >> cstrike\server.cfg

echo |--------------------------------------------------| >> cstrike\server.cfg

echo |  Versiunea 1.00 - redirecteaza protocol 47 + 48  | >> cstrike\server.cfg

echo |--------------------------------------------------| >> cstrike\server.cfg

echo +--------------------------------------------------+ >> cstrike\server.cfg

echo >> cstrike\server.cfg

echo >> cstrike\server.cfg

echo alias "dslow" "sv_minrate 2500;sv_maxrate 2500;sv_minupdaterate 5;sv_maxupdaterate 5;echo dead slow" >> cstrike\server.cfg

echo alias "vslow" "sv_minrate 3500;sv_maxrate 3500;sv_minupdaterate 13;sv_maxupdaterate 13;echo very slow" >> cstrike\server.cfg

echo alias "slow" "sv_minrate 3500;sv_maxrate 5000;sv_minupdaterate 14;sv_maxupdaterate 14;echo slow" >> cstrike\server.cfg

echo alias "norm" "sv_minrate 3500;sv_maxrate 7500;sv_minupdaterate 15;sv_maxupdaterate 15;echo normal" >> cstrike\server.cfg

echo alias "fast" "sv_minrate 3500;sv_maxrate 9999;sv_minupdaterate 20;sv_maxupdaterate 20;echo fast" >> cstrike\server.cfg

echo alias "vfast" "sv_minrate 3500;sv_maxrate 20000;sv_minupdaterate 20;sv_maxupdaterate 60;echo LAN fast" >> cstrike\server.cfg

echo  >> cstrike\server.cfg

echo alias "rates" "sv_minrate;sv_maxrate;sv_minupdaterate;sv_maxupdaterate" >> cstrike\server.cfg

echo  >> cstrike\server.cfg

echo  >> cstrike\server.cfg

echo +--------------------------------------------------+ >> cstrike\server.cfg

echo |--------------------------------------------------| >> cstrike\server.cfg

echo |   BlackGames Romania by whisky | Ultimu Tango    | >> cstrike\server.cfg

echo |--------------------------------------------------| >> cstrike\server.cfg

echo |--------------------------------------------------| >> cstrike\server.cfg

echo |             http://www.blackgames.ro             | >> cstrike\server.cfg

echo |--------------------------------------------------| >> cstrike\server.cfg

echo |--------------------------------------------------| >> cstrike\server.cfg

echo |  Versiunea 1.00 - redirecteaza protocol 47 + 48  | >> cstrike\server.cfg

echo |--------------------------------------------------| >> cstrike\server.cfg

echo +--------------------------------------------------+ >> cstrike\server.cfg

echo >> cstrike\server.cfg

echo >> cstrike\server.cfg

echo setmaster add 68.142.72.250 >> cstrike\server.cfg

echo setmaster add 72.165.61.189 >> cstrike\server.cfg

echo setmaster add 69.28.151.162 >> cstrike\server.cfg

echo setmaster add 213.239.209.221 >> cstrike\server.cfg

echo setmaster enable >> cstrike\server.cfg

echo >> cstrike\server.cfg

echo >> cstrike\server.cfg

echo exec addons\amxmodx\configs\NovuslinkRedirect.cfg >> cstrike\server.cfg

echo exec addons/amxmodx/configs/amxx.cfg >> cstrike\server.cfg

echo exec addons/hlbooster/hlbooster.cfg >> cstrike\server.cfg

echo exec dproto.cfg >> cstrike\server.cfg





echo // +--------------------------------------------------+ >> cstrike\addons\amxmodx\configs\NovuslinkRedirect.cfg

echo // |--------------------------------------------------| >> cstrike\addons\amxmodx\configs\NovuslinkRedirect.cfg

echo // |                  NovuslinkRedirect.cfg           | >> cstrike\addons\amxmodx\configs\NovuslinkRedirect.cfg

echo // |--------------------------------------------------| >> cstrike\addons\amxmodx\configs\NovuslinkRedirect.cfg

echo // +--------------------------------------------------+ >> cstrike\addons\amxmodx\configs\NovuslinkRedirect.cfg

echo >> cstrike\addons\amxmodx\configs\NovuslinkRedirect.cfg

echo >> cstrike\addons\amxmodx\configs\NovuslinkRedirect.cfg

echo novuslink_redirect_server "89.44.246.20" >> cstrike\addons\amxmodx\configs\NovuslinkRedirect.cfg

echo novuslink_redirect_serverport "27015" >> cstrike\addons\amxmodx\configs\NovuslinkRedirect.cfg

echo novuslink_redirect_serverpw "" >> cstrike\addons\amxmodx\configs\NovuslinkRedirect.cfg

echo novuslink_redirect_username "%nume%" >> cstrike\addons\amxmodx\configs\NovuslinkRedirect.cfg


start /high HLDS.exe -console -game cstrike -insecure -pingboost 3 +sys_ticrate 10000 -heapsize 15000  +exec server.cfg

start /high HLDS.exe -console -game cstrike -insecure -pingboost 3 +sys_ticrate 10000 -heapsize 15000  +exec server.cfg

Ce trebuie sa fac ca sa mi se deschida ??

P.S. scz daca nu am scris unde nu trebuie ( vreau un moderator sa mute la sectiunea care trebuie daca nu ii bine aici ) ... Mersi

Link to comment
Share on other sites

Astea is liniile care leam dat sa se deschida

start /high HLDS.exe -console -game cstrike -insecure -pingboost 3 +sys_ticrate 10000 -heapsize 15000  +exec server.cfg start /high HLDS.exe -console -game cstrike -insecure -pingboost 3 +sys_ticrate 10000 -heapsize 15000  +exec server.cfg

dar cand dau dublu click nu mi se deschide cmd ca sa setez liniile si sa dau sa se deschide redirecterele :| asta ii baiu

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.