change your realmlist quick and easy through .bat ;) menu

User Tag List

Results 1 to 13 of 13
  1. #1
    dough's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2006
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    change your realmlist quick and easy through .bat ;)

    i seen a lot of ppl posting links to programs that would change your realmlist.
    i didnt see the point in posting stuff like that when you can do something as simple as this, i wrote this in 20 minutes:

    *EDIT*
    i looked at the script and found MANY issues so i took 45 minutes today to completely rewrite the it to work a little easier.
    whats changed:
    completely rebuilt code
    added configuration wizard for customizing the config easier
    completely reworked the settings.wtf file
    added information about settings inside config
    made name of backup folder customizable
    added color setting to config
    added title setting to config
    added the 2 extra realms to config for easier custom realm adding
    added backup and restore "wizard" for easier restoring of backups
    cleaned code+config


    Code:
    @ECHO OFF
    CD C:\
    IF NOT EXIST SETTINGS GOTO OPTIEXIST
    CD C:\SETTINGS
    GOTO LEAD
    :OPTIEXIST
    MKDIR SETTINGS
    GOTO LEAD
    :LEAD
    TITLE Loading.. please wait..
    set RAND=%RANDOM%
    IF NOT EXIST SETTINGS.WTF GOTO NOTSET
    IF EXIST SETTINGS.WTF GOTO INITIATE
    :NOTSET
    CLS
    @ECHO OFF
    ECHO                  ËËËËËËËËËËËËËËËËËËË
    ECHO                  º!!!!!WARNING!!!!!º
    ECHO                  ËËËËËËËËËËËËËËËËËËË
    ECHO.
    ECHO          Unfortunately, the configuration file
    ECHO         has not been modified or does not exist
    ECHO          If you have the settings.WTF file and
    ECHO              need a readme, Please press 1
    ECHO          if you dont have a settings.WTF File
    ECHO           and want to create 1 please press 2
    ECHO     if you would like to just create the WTF file
    ECHO             without making readme, press 3
    ECHO               to quit without modifying,
    ECHO                    Please press x
    ECHO    Or if you would like to run through the setup
    ECHO              wizard, please press 4 ;)
    ECHO.
    ECHO.
    SET KEY=0
    SET /P KEY=
    IF /I '%KEY%' EQU '1' GOTO BUILDREADME
    IF /I '%KEY%' EQU '2' GOTO BUILDALL
    IF /I '%KEY%' EQU '3' GOTO BUILDALL
    IF /I '%KEY%' EQU '4' GOTO WIZARD
    IF /I '%KEY%' EQU 'x' GOTO EXIT
    :BUILDREADME
    CLS
    ECHO Please Wait...
    ECHO Hello, and welcome to the readme for DougH's Realmlist changer for world of >README_LAUNCHER.TXT
    ECHO warcraft. this is the completed version and most "proper".>>README_LAUNCHER.TXT
    ECHO for a quick guide on how to configure, please open SETTINGS.WTF with notepad,>>README_LAUNCHER.TXT
    ECHO or continue reading for a detailed explanation on the different settings.>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO Please keep in mind all settings are to be written without spaces at the beginning>>README_LAUNCHER.TXT
    ECHO away from setting name like:>>README_LAUNCHER.TXT
    ECHO Right:>>README_LAUNCHER.TXT
    ECHO ONEREALMLIST=C:\users\Public\Games\World of Warcraft>>README_LAUNCHER.TXT
    ECHO Wrong:>>README_LAUNCHER.TXT
    ECHO ONEREALMLIST= C:\users\Public\Games\World of Warcraft>>README_LAUNCHER.TXT
    ECHO Also wrong for ONEREALMLIST:>>README_LAUNCHER.TXT
    ECHO ONEREALMLIST=C:\users\Public\Games\World of Warcraft\>>README_LAUNCHER.TXT
    ECHO OR>>README_LAUNCHER.TXT
    ECHO ONEREALMLIST= C:\users\Public\Games\World of Warcraft\>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO first we'll start off with the SYSTEM SETTINGS part of the config.>>README_LAUNCHER.TXT
    ECHO when you open it you will see 4 settings under this list, such as:>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO DEFAULTDIR=NOT_SET>>README_LAUNCHER.TXT
    ECHO LANGUAGEDIR=NOT_SET>>README_LAUNCHER.TXT
    ECHO CHANGETIME=NOT_SET>>README_LAUNCHER.TXT
    ECHO REALMLIST_BACKUP=NOT_SET>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO DEFAULTDIR - this setting is the path to where world of warcraft.exe is.>>README_LAUNCHER.TXT
    ECHO if you chose the long config in .bat (recommended), this should already be set.>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO LANGUAGEDIR - this setting is just for the version of world of warcraft you have, >>README_LAUNCHER.TXT
    ECHO such as: enUS, enGB, enEU, frFR, etc.>>README_LAUNCHER.TXT
    ECHO ECHO.>>README_LAUNCHER.TXT
    ECHO CHANGETIME - this setting is just a reference part of the .bat to read when the>>README_LAUNCHER.TXT
    ECHO backup was created. dont change.>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO REALMLIST_BACKUP - this setting is basicly the same as above, just stores the name>>README_LAUNCHER.TXT
    ECHO of the backed up realmlist. dont change.>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO --------------------------------------------------------------------------------
    ECHO.>>README_LAUNCHER.TXT
    ECHO now for the extra realms..>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO when you open the settings file, you will see a section named REALM SETTINGS>>README_LAUNCHER.TXT
    ECHO it has 7 settings which are:>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO ENABLEDEXTRA=
    ECHO ONEREALMLIST=NOT_SET>>README_LAUNCHER.TXT
    ECHO ONEPATCHLIST=NOT_SET>>README_LAUNCHER.TXT
    ECHO ONEREALMNAME=NOT_SET>>README_LAUNCHER.TXT
    ECHO TWOREALMLIST=NOT_SET>>README_LAUNCHER.TXT
    ECHO TWOPATCHLIST=NOT_SET>>README_LAUNCHER.TXT
    ECHO TWOREALMNAME=NOT_SET>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ENABLEDEXTRA - this setting is for how many extra realms you have activated (0-2)>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO ***REALMLIST - this setting is for the realmlist to the custom server, such as IP>>README_LAUNCHER.TXT
    ECHO or DNS (web address such as *.ath.cx, *.webhop.com *.dyndns.org)>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO ***PATCHLIST - this setting is for if your custom server supports patchlist>>README_LAUNCHER.TXT
    ECHO (a blizzard text doc for the launcher to keep up-to-date with the realm, if blank, >>README_LAUNCHER.TXT
    ECHO game will use blizzard, that is not controlled by the .bat)>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO ***REALMNAME - this is just the name of the realm to appear in .bat :P>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO -------------------------------------------------------------------------------->>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO now for the part entitled BATCH SETTINGS at the bottem of config.>>README_LAUNCHER.TXT
    ECHO it has 4 settings, they are:>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO BACKUP_DIR=NOT_SET>>README_LAUNCHER.TXT
    ECHO REALMLIST_DIR=NOT_SET>>README_LAUNCHER.TXT
    ECHO MODIFIED_SET=0 >>README_LAUNCHER.TXT
    ECHO BAT_TITLE=World of Warcraft Realmlist tool by DougH>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO BACKUP_DIR - this is the name of the folder for storing backups of realmlist.wtf>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO REALMLIST_DIR this setting is the dir where realmlist.wtf is stored, from  >>README_LAUNCHER.TXT
    inside the path to where wow.exe is  >>README_LAUNCHER.TXT
    (for example, if WOW.EXE was in C:\USERS\public\games\world of warcraft  >>README_LAUNCHER.TXT
    and realmlist.wtf was in C:\USERS\public\games\world of warcraft\data\enUS,  >>README_LAUNCHER.TXT
    you would write data\enUS >>README_LAUNCHER.TXT
    ECHO if you are unsure, just change MODIFIED_SET to 0 again and run .bat and hit auto config ;)>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO MODIFIED_SET - this setting just lets the .bat know if the config is modified, if 0, the >>README_LAUNCHER.TXT
    ECHO .bat wont initiate and give you the option of auto-config ;)>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO BAT_TITLE - just the title to appear in .bat, just decided to enable it as config option>>README_LAUNCHER.TXT
    ECHO so people could customize it a lil ;)>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO DEFAULT_COL - another setting i decided to add for more customization >>README_LAUNCHER.TXT
    ECHO easily without having to know anything about .bat>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    ECHO if you decide to rewrite my code, please at least remember who made it..>>README_LAUNCHER.TXT
    ECHO you can upload and change the main IP in it if you decide, just right click and goto edit ;)>>README_LAUNCHER.TXT
    ECHO also, dont upload config files plz.. let them create their own. ;)>>README_LAUNCHER.TXT
    ECHO.>>README_LAUNCHER.TXT
    IF /I '%KEY%' EQU '3' GOTO FINISH3
    GOTO FINISH2
    :BUILDALL
    CLS
    ECHO Please Wait...
    IF EXIST SETTINGS.WTF GOTO BUILDREADME
    ECHO #####################################################>SETTINGS.WTF
    ECHO ###################SYSTEM SETTINGS###################>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   DEFAULTDIR - this setting is for the install    #>>SETTINGS.WTF
    ECHO #   Directory of World of warcraft EX:              #>>SETTINGS.WTF
    ECHO #   C:\Users\Public\Games\World of Warcraft         #>>SETTINGS.WTF
    ECHO #   Make sure the "\" isnt on the end ;)            #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   LANGUAGEDIR - this setting is for your          #>>SETTINGS.WTF
    ECHO #   World of Warcraft Version  EX: enUS or enGB     #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   CHANGETIME - this is just a reference for the   #>>SETTINGS.WTF
    ECHO #   Backup part of the .bat                         #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   REALMLIST_BACKUP - same as above :P             #>>SETTINGS.WTF
    ECHO #   Backup part of the .bat  states the name of     #>>SETTINGS.WTF
    ECHO #   backed up realmlist.wtf. changing wont allow    #>>SETTINGS.WTF
    ECHO #   you to restore backup properly                  #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO DEFAULTDIR=C:\Users\Public\Games\World of Warcraft>>SETTINGS.WTF
    ECHO LANGUAGEDIR=enUS>>SETTINGS.WTF
    ECHO CHANGETIME=NOT_SET>>SETTINGS.WTF
    ECHO REALMLIST_BACKUP=NOT_SET>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO ###################REALM SETTINGS####################>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   ENABLEDEXTRA - this setting is for the addable  #>>SETTINGS.WTF
    ECHO #   Realms (2 extra available atm, if you need more #>>SETTINGS.WTF
    ECHO #   contact me at [email protected])         #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   ONEREALM* - these settings (realmlist,          #>>SETTINGS.WTF
    ECHO #   patchlist, realmname) are pretty obvious        #>>SETTINGS.WTF
    ECHO #   PATCHLIST the address to login server           #>>SETTINGS.WTF
    ECHO #   PATCHLIST the patchlist (if applicable, leave   #>>SETTINGS.WTF
    ECHO #   blank if not used for the realm                 #>>SETTINGS.WTF
    ECHO #   REALMNAME - name of realm to appear in .bat     #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO ENABLEDEXTRA=NOT_SET>>SETTINGS.WTF
    ECHO ONEREALMLIST=NOT_SET>>SETTINGS.WTF
    ECHO ONEPATCHLIST=NOT_SET>>SETTINGS.WTF
    ECHO ONEREALMNAME=NOT_SET>>SETTINGS.WTF
    ECHO TWOREALMLIST=NOT_SET>>SETTINGS.WTF
    ECHO TWOPATCHLIST=NOT_SET>>SETTINGS.WTF
    ECHO TWOREALMNAME=NOT_SET>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO ###################BATCH SETTINGS####################>>SETTINGS.WTF
    ECHO #   BACKUP_DIR - customize name of folder to store  #>>SETTINGS.WTF
    ECHO #   backed up realmlist                             #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   REALMLIST_DIR - this is a .bat set setting,     #>>SETTINGS.WTF
    ECHO #   changing could make the .bat not work           #>>SETTINGS.WTF
    ECHO #   unless its NOT_SET if in that case, read        #>>SETTINGS.WTF
    ECHO #   readme for more information.. or fill in ;)     #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   BAT_TITLE - this is the title of .bat.          #>>SETTINGS.WTF
    ECHO #   can be changed.                                 #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   DEFAULT_COL - this setting is for the default   #>>SETTINGS.WTF
    ECHO #   color of bat window, color codes are:           #>>SETTINGS.WTF
    ECHO #   0 = Black       8 = Gray                        #>>SETTINGS.WTF
    ECHO #   1 = Blue        9 = Light Blue                  #>>SETTINGS.WTF
    ECHO #   2 = Green       A = Light Green                 #>>SETTINGS.WTF
    ECHO #   3 = Aqua        B = Light Aqua                  #>>SETTINGS.WTF
    ECHO #   4 = Red         C = Light Red                   #>>SETTINGS.WTF
    ECHO #   5 = Purple      D = Light Purple                #>>SETTINGS.WTF
    ECHO #   6 = Yellow      E = Light Yellow                #>>SETTINGS.WTF
    ECHO #   7 = White       F = Bright White                #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   MODIFIED_SET - must be set to '1' is set to     #>>SETTINGS.WTF
    ECHO #   '0' which will stop the .bat from loading       #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO BACKUP_DIR=NOT_SET>>SETTINGS.WTF
    ECHO REALMLIST_DIR=NOT_SET>>SETTINGS.WTF
    ECHO MODIFIED_SET=0 >>SETTINGS.WTF
    ECHO BAT_TITLE=World of Warcraft Realmlist tool by DougH>>SETTINGS.WTF
    ECHO DEFAULT_COL=02>>SETTINGS.WTF
    CLS
    ECHO All Done!
    ECHO going to final screen.
    ECHO Please wait....
    IF /I '%KEY%' EQU '3' GOTO FINISH1
    IF EXIST README_REALMLIST.tXT GOTO FINISH1
    GOTO BUILDREADME
    :FINISH1
    CLS
    ECHO finished!
    ECHO SETTINGS.WTF has been made successfully!
    ECHO open with notepad to edit and get a
    ECHO quick overview on how to edit
    ECHO.
    PAUSE
    GOTO EXIT
    :FINISH2
    CLS
    ECHO finished!
    ECHO SETTINGS.WTF and README_REALMLIST.TXT 
    ECHO have been made successfully!
    ECHO open with notepad to edit and get a
    ECHO quick overview on how to edit
    ECHO or read readme for detailed Explanation
    ECHO.
    PAUSE
    GOTO EXIT
    :FINISH3
    CLS
    ECHO finished!
    ECHO README_REALMLIST.TXT 
    ECHO has been made successfully!
    ECHO.
    PAUSE
    GOTO EXIT
    :INITIATE
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%x in (SETTINGS.WTF) do (
    echo %%x | find "MODIFIED_SET"
    if not errorlevel 1 set str=%%x
    )
    for /f "tokens=2 delims==" %%x in ('echo !str!') do (
    set ISMODDED=%%x
    )
    IF %ISMODDED% EQU 1 GOTO STARTUP
    IF %ISMODDED% EQU 0 GOTO NOTSET
    :STARTUP
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%v in (SETTINGS.WTF) do (
    echo %%v | find "DEFAULT_COL"
    if not errorlevel 1 set str=%%v
    )
    for /f "tokens=2 delims==" %%v in ('echo !str!') do (
    set DEFCOL=%%v
    )
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%u in (SETTINGS.WTF) do (
    echo %%u | find "BACKUP_DIR"
    if not errorlevel 1 set str=%%u
    )
    for /f "tokens=2 delims==" %%u in ('echo !str!') do (
    set BACDIR=%%u
    )
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%t in (SETTINGS.WTF) do (
    echo %%t | find "REALMLIST_DIR"
    if not errorlevel 1 set str=%%t
    )
    for /f "tokens=2 delims==" %%t in ('echo !str!') do (
    set RLMDIR=%%t
    )
    IF %RLMDIR% EQU NOT_SET GOTO BULLSHIT
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%w in (SETTINGS.WTF) do (
    echo %%w | find "BAT_TITLE"
    if not errorlevel 1 set str=%%w
    )
    for /f "tokens=2 delims==" %%w in ('echo !str!') do (
    set BATLE=%%w
    )
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%s in (SETTINGS.WTF) do (
    echo %%s | find "DEFAULTDIR"
    if not errorlevel 1 set str=%%s
    )
    for /f "tokens=2 delims==" %%s in ('echo !str!') do (
    set DEFDIR=%%s
    )
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%r in (SETTINGS.WTF) do (
    echo %%r | find "REALMLIST_BACKUP"
    if not errorlevel 1 set str=%%r
    )
    for /f "tokens=2 delims==" %%r in ('echo !str!') do (
    set RLMBKP=%%r
    )
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%q in (SETTINGS.WTF) do (
    echo %%q | find "LANGUAGEDIR"
    if not errorlevel 1 set str=%%q
    )
    for /f "tokens=2 delims==" %%q in ('echo !str!') do (
    set LANGDIR=%%q
    )
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%p in (SETTINGS.WTF) do (
    echo %%p | find "CHANGETIME"
    if not errorlevel 1 set str=%%p
    )
    for /f "tokens=2 delims==" %%p in ('echo !str!') do (
    set CHGTME=%%p
    )
    GOTO WOOT
    :BULLSHIT
    CLS
    ECHO realmlist directory is not set. 
    ECHO the program could not load. please make sure
    ECHO to edit the config and change it in config. if you want 
    ECHO an explanation on it, please just read the readme
    ECHO.
    PAUSE
    GOTO EXIT
    :WOOT
    CLS
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%o in (SETTINGS.WTF) do (
    echo %%o | find "ENABLEDEXTRA"
    if not errorlevel 1 set str=%%o
    )
    for /f "tokens=2 delims==" %%o in ('echo !str!') do (
    set EXTRA=%%o
    )
    COLOR %DEFCOL%
    GOTO START%EXTRA%
    :START1
    COLOR %DEFCOL%
    TITLE %BATLE%
    ECHO 1 extra found
    ECHO loading...
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%n in (SETTINGS.WTF) do (
    echo %%n | find "ONEREALMLIST"
    if not errorlevel 1 set str=%%n
    )
    for /f "tokens=2 delims==" %%n in ('echo !str!') do (
    set ORL=%%n
    )
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%l in (SETTINGS.WTF) do (
    echo %%l | find "ONEPATCHLIST"
    if not errorlevel 1 set str=%%l
    )
    for /f "tokens=2 delims==" %%l in ('echo !str!') do (
    set OPL=%%l
    )
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%j in (SETTINGS.WTF) do (
    echo %%j | find "ONEREALMNAME"
    if not errorlevel 1 set str=%%j
    )
    for /f "tokens=2 delims==" %%j in ('echo !str!') do (
    set ORN=%%j
    )
    GOTO SHOW1
    :START2
    ECHO 2 extras found
    Echo Loading...
    CLS
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%n in (SETTINGS.WTF) do (
    echo %%n | find "ONEREALMLIST"
    if not errorlevel 1 set str=%%n
    )
    for /f "tokens=2 delims==" %%n in ('echo !str!') do (
    set ORL=%%n
    )
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%m in (SETTINGS.WTF) do (
    echo %%m | find "TWOREALMLIST"
    if not errorlevel 1 set str=%%m
    )
    for /f "tokens=2 delims==" %%m in ('echo !str!') do (
    set TRL=%%m
    )
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%l in (SETTINGS.WTF) do (
    echo %%l | find "ONEPATCHLIST"
    if not errorlevel 1 set str=%%l
    )
    for /f "tokens=2 delims==" %%l in ('echo !str!') do (
    set OPL=%%l
    )
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%k in (SETTINGS.WTF) do (
    echo %%k | find "TWOPATCHLIST"
    if not errorlevel 1 set str=%%k
    )
    for /f "tokens=2 delims==" %%k in ('echo !str!') do (
    set TPL=%%k
    )
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%j in (SETTINGS.WTF) do (
    echo %%j | find "ONEREALMNAME"
    if not errorlevel 1 set str=%%j
    )
    for /f "tokens=2 delims==" %%j in ('echo !str!') do (
    set ORN=%%j
    )
    setLocal EnableDelayedExpansion
    for /f "tokens=* delims= " %%o in (SETTINGS.WTF) do (
    echo %%o | find "TWOREALMNAME"
    if not errorlevel 1 set str=%%o
    )
    for /f "tokens=2 delims==" %%o in ('echo !str!') do (
    set TRN=%%o
    )
    TITLE %BATLE%
    GOTO SHOW2
    :START0
    TITLE %BATLE%
    CLS
    ECHO %TIME% %DATE%
    ECHO.
    Echo To make realmlist for Oblivion Realms: Press 1
    ECHO to make realmlist for US realms:       Press 2
    ECHO to make realmlist for EU realms:       Press 3
    ECHO To Restore Backup Realmlist:           press 4
    ECHO To Exit Menu:                          Press X
    ECHO.
    SET KEY=0
    SET /P KEY=
    IF /I '%KEY%' EQU 'X' GOTO EXIT
    IF /I '%KEY%' EQU '1' GOTO 1
    IF /I '%KEY%' EQU '2' GOTO 4
    IF /I '%KEY%' EQU '3' GOTO 5
    IF /I '%KEY%' EQU '4' GOTO BACKUP
    CLS
    ECHO.
    ECHO "%KEY%" is not valid. Please try again.
    GOTO START0
    :SHOW1
    TITLE %BATLE%
    CLS
    ECHO %TIME% %DATE%
    ECHO.
    Echo To make realmlist for Oblivion Realms: Press 1
    Echo To make realmlist for %ORN%:           Press 2
    ECHO to make realmlist for US realms:       Press 3
    ECHO to make realmlist for EU realms:       Press 4
    ECHO To Restore Backup Realmlist:           press 5
    ECHO To Exit Menu:                          Press X
    ECHO.
    SET KEY=0
    SET /P KEY=
    IF /I '%KEY%' EQU 'X' GOTO EXIT
    IF /I '%KEY%' EQU '1' GOTO 1
    IF /I '%KEY%' EQU '2' GOTO 2
    IF /I '%KEY%' EQU '3' GOTO 4
    IF /I '%KEY%' EQU '4' GOTO 5
    IF /I '%KEY%' EQU '5' GOTO BACKUP
    CLS
    ECHO.
    ECHO "%KEY%" is not valid. Please try again.
    GOTO SHOW1
    :SHOW2
    TITLE %BATLE%
    CLS
    ECHO %TIME% %DATE%
    ECHO.
    Echo To make realmlist for Oblivion Realms: Press 1
    Echo To make realmlist for %ORN%:           Press 2
    Echo To make realmlist for %TRN%:           Press 3
    ECHO to make realmlist for US realms:       Press 4
    ECHO to make realmlist for EU realms:       Press 5
    ECHO To Restore Backup Realmlist:           press 6
    ECHO To Exit Menu:                          Press X
    ECHO.
    SET KEY=0
    SET /P KEY=
    IF /I '%KEY%' EQU 'X' GOTO EXIT
    IF /I '%KEY%' EQU '1' GOTO 1
    IF /I '%KEY%' EQU '2' GOTO 2
    IF /I '%KEY%' EQU '3' GOTO 3
    IF /I '%KEY%' EQU '4' GOTO 4
    IF /I '%KEY%' EQU '5' GOTO 5
    IF /I '%KEY%' EQU '6' GOTO BACKUP
    CLS
    ECHO.
    ECHO "%KEY%" is not valid. Please try again.
    GOTO SHOW2
    :1
    CLS
    Echo SET Realmlist oblivionlogin.ath.cx > Realmlist.wtf
    ECHO SET patchlist oblivionlogin.ath.cx >> Realmlist.wtf
    ECHO set portal us  >> Realmlist.wtf
    GOTO FAILSAFE
    :2
    CLS
    Echo SET Realmlist %ORL% > Realmlist.wtf
    ECHO SET patchlist %OPL% >> Realmlist.wtf
    ECHO set portal us  >> Realmlist.wtf
    GOTO FAILSAFE 
    :3
    CLS
    Echo SET Realmlist %TRL% > Realmlist.wtf
    ECHO SET patchlist %TPL% >> Realmlist.wtf
    ECHO set portal us  >> Realmlist.wtf 
    GOTO FAILSAFE 
    :4
    ECHO SET realmlist us.logon.worldofwarcraft.com > Realmlist.wtf
    ECHO SET realmlist us.version.worldofwarcraft.com >> Realmlist.wtf
    ECHO SET portal US >> Realmlist.wtf
    GOTO FAILSAFE
    :5
    ECHO SET realmlist eu.logon.worldofwarcraft.com > Realmlist.wtf
    ECHO SET realmlist eu.version.worldofwarcraft.com >> Realmlist.wtf
    ECHO SET portal EU >> Realmlist.wtf
    GOTO FAILSAFE
    :BACKUP
    CLS
    TITLE Backup and Restore Wizard
    ECHO Welcome To the Backup and Restore wizard
    ECHO for WoW Realmlist Changer by DougH
    ECHO the Current backup is:
    ECHO %RLMBKP%
    ECHO Created on:
    ECHO %CHGTME%
    ECHO Saved in:
    ECHO %DEFDIR%\%BACDIR%
    ECHO To Restore this Backup, please Press 1
    ECHO To Restart program, please press 2
    SET KEY=0
    SET /P KEY=
    IF /I '%KEY%' EQU '1' GOTO RSTOREBAKUP
    IF /I '%KEY%' EQU '2' GOTO LEAD
    CLS
    ECHO Key is not Valid Please Try Again
    GOTO 
    :RSTOREBAKUP
    CD %DEFDIR%
    IF NOT EXIST REALMLIST.WTF GOTO RESTORE2
    COPY "%BACDIR%\%RLMBKP%" "%DEFDIR%\REALMLIST.WTF"
    GOTO FINISHBACKUP
    :RESTORE2
    COPY "%BACDIR%\%RLMBKP%" "%DEFDIR%\Data\%LANGDIR%\REALMLIST.WTF"
    GOTO FINISHBACKUP
    :FINISHBACKUP
    CLS
    ECHO Congradulations!
    ECHO Backup and Restore Wizard has
    ECHO Successfully restored the backup
    ECHO with the name: %RLMBKP%
    ECHO from directory:
    ECHO "%DEFDIR%\%BACDIR%
    ECHO Please Press 1 to start WoW
    ECHO please Press 2 to exit to desktop
    SET KEY=0
    SET /P KEY=
    IF /I '%KEY%' EQU '1' GOTO STARTWOW
    IF /I '%KEY%' EQU '2' GOTO EXIT
    :WIZARD
    CLS
    ECHO this part will allow you to edit the config using
    ECHO a wizard. do fully build it we will ask a few
    ECHO questions, and try to give a basic example of
    ECHO the command.
    ECHO.
    PAUSE
    CLS
    ECHO Lets start at the top.
    PAUSE
    CLS
    ECHO where is wow.exe located? (
    ECHO the full path without the "\" on the end)
    ECHO.
    set /p LISTPATH="Path to WoW.exe: "
    CLS
    ECHO now, what version of wow do you have?
    ECHO for example, enUS, or enGB, or frFR or enEU
    ECHO.
    set /p WOWVERS="WoW Version: "
    CLS
    ECHO what would you like to name the folder to store
    ECHO the backups? (created inside WoW directory)
    ECHO.
    set /p BACKFOLD="Backup Folder Name: "
    CLS
    ECHO where is your realmlist.wtf located
    ECHO if its in Data\{yourversion}, put Data\
    ECHO if your realmlist.wtf is still in 
    ECHO main directory, simply put \
    ECHO.
    set /p RLMBAKDIR="Realmlist Location: "
    :BLABLA
    CLS
    ECHO Main Configuration set.
    ECHO Would you like to enable multiple realms?
    ECHO press 1 to enable (takes you to configuration)
    ECHO press 0 to disable (skips to end)
    ECHO.
    set /p MULTIREALM="Realmlist Enable: "
    IF %MULTIREALM% EQU 0 GOTO FINISHBUILD
    IF %MULTIREALM% EQU 1 GOTO STARTMULTI
    CLS
    ECHO key is not valid.
    ECHO please try again
    ECHO.
    PAUSE
    GOTO BLABLA
    :STARTMULTI
    CLS
    ECHO How many realms would you like to enable?
    ECHO (0=disable, 1=one realm, 2=two realms, 2 is max)
    ECHO.
    set /p MULTIRNUM="Additional realms: "
    IF %MULTIRNUM% EQU 1 GOTO ADD1
    IF %MULTIRNUM% EQU 2 GOTO ADD2
    :FINALBUILD
    CLS
    ECHO Congradulations!
    ECHO the wizard successfully edited the config
    ECHO Please press 1 to restart the program
    ECHO or press 2 to exit to desktop.
    set /p FINALCHOICE="1=restart 2=exit: "
    IF %FINALCHOICE% EQU 1 GOTO LEAD
    IF %FINALCHOICE% EQU 2 GOTO EXIT
    :ADD1
    CLS
    ECHO please input the name of the new realm
    ECHO.
    set /p REALMANAM="Realm name: "
    CLS
    ECHO Please input the realmlist for the new realm
    ECHO (IP or web address)
    ECHO.
    set /p REALMAADD="Realm Address: "
    CLS
    ECHO Please input the patchlist for the new realm
    ECHO if unsure just write same as realmlist
    ECHO.
    set /p REALMAPLS="Realm Patchlist: "
    GOTO FINISHBUILD
    :ADD2
    CLS
    ECHO please input the name of the new realm
    ECHO.
    set /p REALMANAM="Realm name: "
    CLS
    ECHO Please input the realmlist for the new realm
    ECHO (IP or web address)
    ECHO.
    set /p REALMAADD="Realm Address: "
    CLS
    ECHO Please input the patchlist for the new realm
    ECHO if unsure just write same as realmlist
    ECHO.
    set /p REALMAPLS="Realm Patchlist: "
    CLS
    ECHO now for the second realm ;)
    PAUSE
    CLS
    ECHO please input the name of the new realm
    ECHO.
    set /p REALMBNAM="Realm name: "
    CLS
    ECHO Please input the realmlist for the new realm
    ECHO (IP or web address)
    ECHO.
    set /p REALMBADD="Realm Address: "
    CLS
    ECHO Please input the patchlist for the new realm
    ECHO if unsure just write same as realmlist
    ECHO.
    set /p REALMBPLS="Realm Patchlist: "
    CLS
    GOTO FINISHBUILD
    :FINISHBUILD
    IF %MULTIREALM% EQU 0 GOTO FINBUILD1
    ECHO #####################################################>SETTINGS.WTF
    ECHO ###################SYSTEM SETTINGS###################>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   DEFAULTDIR - this setting is for the install    #>>SETTINGS.WTF
    ECHO #   Directory of World of warcraft EX:              #>>SETTINGS.WTF
    ECHO #   C:\Users\Public\Games\World of Warcraft         #>>SETTINGS.WTF
    ECHO #   Make sure the "\" isnt on the end ;)            #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   LANGUAGEDIR - this setting is for your          #>>SETTINGS.WTF
    ECHO #   World of Warcraft Version  EX: enUS or enGB     #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   CHANGETIME - this is just a reference for the   #>>SETTINGS.WTF
    ECHO #   Backup part of the .bat                         #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   REALMLIST_BACKUP - same as above :P             #>>SETTINGS.WTF
    ECHO #   Backup part of the .bat  states the name of     #>>SETTINGS.WTF
    ECHO #   backed up realmlist.wtf. changing wont allow    #>>SETTINGS.WTF
    ECHO #   you to restore backup properly                  #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO DEFAULTDIR=%LISTPATH%>>SETTINGS.WTF
    ECHO LANGUAGEDIR=%WOWVERS%>>SETTINGS.WTF
    ECHO CHANGETIME=NOT_SET>>SETTINGS.WTF
    ECHO REALMLIST_BACKUP=NOT_SET>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO ###################REALM SETTINGS####################>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   ENABLEDEXTRA - this setting is for the addable  #>>SETTINGS.WTF
    ECHO #   Realms (2 extra available atm, if you need more #>>SETTINGS.WTF
    ECHO #   contact me at [email protected])         #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   ONEREALM* - these settings (realmlist,          #>>SETTINGS.WTF
    ECHO #   patchlist, realmname) are pretty obvious        #>>SETTINGS.WTF
    ECHO #   PATCHLIST the address to login server           #>>SETTINGS.WTF
    ECHO #   PATCHLIST the patchlist (if applicable, leave   #>>SETTINGS.WTF
    ECHO #   blank if not used for the realm                 #>>SETTINGS.WTF
    ECHO #   REALMNAME - name of realm to appear in .bat     #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO ENABLEDEXTRA=%MULTIRNUM% >>SETTINGS.WTF
    ECHO ONEREALMLIST=%REALMAADD%>>SETTINGS.WTF
    ECHO ONEPATCHLIST=%REALMAPLS%>>SETTINGS.WTF
    ECHO ONEREALMNAME=%REALMANAM%>>SETTINGS.WTF
    ECHO TWOREALMLIST=%REALMBADD%>>SETTINGS.WTF
    ECHO TWOPATCHLIST=%REALMBPLS%>>SETTINGS.WTF
    ECHO TWOREALMNAME=%REALMBNAM%>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO ###################BATCH SETTINGS####################>>SETTINGS.WTF
    ECHO #   BACKUP_DIR - customize name of folder to store  #>>SETTINGS.WTF
    ECHO #   backed up realmlist                             #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   REALMLIST_DIR - this is a .bat set setting,     #>>SETTINGS.WTF
    ECHO #   changing could make the .bat not work           #>>SETTINGS.WTF
    ECHO #   unless its NOT_SET if in that case, read        #>>SETTINGS.WTF
    ECHO #   readme for more information.. or fill in ;)     #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   BAT_TITLE - this is the title of .bat.          #>>SETTINGS.WTF
    ECHO #   can be changed.                                 #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   DEFAULT_COL - this setting is for the default   #>>SETTINGS.WTF
    ECHO #   color of bat window, color codes are:           #>>SETTINGS.WTF
    ECHO #   0 = Black       8 = Gray                        #>>SETTINGS.WTF
    ECHO #   1 = Blue        9 = Light Blue                  #>>SETTINGS.WTF
    ECHO #   2 = Green       A = Light Green                 #>>SETTINGS.WTF
    ECHO #   3 = Aqua        B = Light Aqua                  #>>SETTINGS.WTF
    ECHO #   4 = Red         C = Light Red                   #>>SETTINGS.WTF
    ECHO #   5 = Purple      D = Light Purple                #>>SETTINGS.WTF
    ECHO #   6 = Yellow      E = Light Yellow                #>>SETTINGS.WTF
    ECHO #   7 = White       F = Bright White                #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   MODIFIED_SET - must be set to '1' is set to     #>>SETTINGS.WTF
    ECHO #   '0' which will stop the .bat from loading       #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO BACKUP_DIR=%BACKFOLD%>>SETTINGS.WTF
    ECHO REALMLIST_DIR=%RLMBAKDIR%>>SETTINGS.WTF
    ECHO MODIFIED_SET=1 >>SETTINGS.WTF
    ECHO BAT_TITLE=World of Warcraft Realmlist tool by DougH>>SETTINGS.WTF
    ECHO DEFAULT_COL=02>>SETTINGS.WTF
    GOTO FINALBUILD
    :FINBUILD1
    IF %MULTIREALM% EQU 1 GOTO FINISHBUILD
    ECHO #####################################################>SETTINGS.WTF
    ECHO ###################SYSTEM SETTINGS###################>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   DEFAULTDIR - this setting is for the install    #>>SETTINGS.WTF
    ECHO #   Directory of World of warcraft EX:              #>>SETTINGS.WTF
    ECHO #   C:\Users\Public\Games\World of Warcraft         #>>SETTINGS.WTF
    ECHO #   Make sure the "\" isnt on the end ;)            #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   LANGUAGEDIR - this setting is for your          #>>SETTINGS.WTF
    ECHO #   World of Warcraft Version  EX: enUS or enGB     #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   CHANGETIME - this is just a reference for the   #>>SETTINGS.WTF
    ECHO #   Backup part of the .bat                         #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   REALMLIST_BACKUP - same as above :P             #>>SETTINGS.WTF
    ECHO #   Backup part of the .bat  states the name of     #>>SETTINGS.WTF
    ECHO #   backed up realmlist.wtf. changing wont allow    #>>SETTINGS.WTF
    ECHO #   you to restore backup properly                  #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO DEFAULTDIR=%LISTPATH%>>SETTINGS.WTF
    ECHO LANGUAGEDIR=%WOWVERS%>>SETTINGS.WTF
    ECHO CHANGETIME=NOT_SET>>SETTINGS.WTF
    ECHO REALMLIST_BACKUP=NOT_SET>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO ###################REALM SETTINGS####################>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   ENABLEDEXTRA - this setting is for the addable  #>>SETTINGS.WTF
    ECHO #   Realms (2 extra available atm, if you need more #>>SETTINGS.WTF
    ECHO #   contact me at [email protected])         #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   ONEREALM* - these settings (realmlist,          #>>SETTINGS.WTF
    ECHO #   patchlist, realmname) are pretty obvious        #>>SETTINGS.WTF
    ECHO #   PATCHLIST the address to login server           #>>SETTINGS.WTF
    ECHO #   PATCHLIST the patchlist (if applicable, leave   #>>SETTINGS.WTF
    ECHO #   blank if not used for the realm                 #>>SETTINGS.WTF
    ECHO #   REALMNAME - name of realm to appear in .bat     #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO ENABLEDEXTRA=0 >>SETTINGS.WTF
    ECHO ONEREALMLIST=>>SETTINGS.WTF
    ECHO ONEPATCHLIST=>>SETTINGS.WTF
    ECHO ONEREALMNAME=>>SETTINGS.WTF
    ECHO TWOREALMLIST=>>SETTINGS.WTF
    ECHO TWOPATCHLIST=>>SETTINGS.WTF
    ECHO TWOREALMNAME=>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO ###################BATCH SETTINGS####################>>SETTINGS.WTF
    ECHO #   BACKUP_DIR - customize name of folder to store  #>>SETTINGS.WTF
    ECHO #   backed up realmlist                             #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   REALMLIST_DIR - this is a .bat set setting,     #>>SETTINGS.WTF
    ECHO #   changing could make the .bat not work           #>>SETTINGS.WTF
    ECHO #   unless its NOT_SET if in that case, read        #>>SETTINGS.WTF
    ECHO #   readme for more information.. or fill in ;)     #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   BAT_TITLE - this is the title of .bat.          #>>SETTINGS.WTF
    ECHO #   can be changed.                                 #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   DEFAULT_COL - this setting is for the default   #>>SETTINGS.WTF
    ECHO #   color of bat window, color codes are:           #>>SETTINGS.WTF
    ECHO #   0 = Black       8 = Gray                        #>>SETTINGS.WTF
    ECHO #   1 = Blue        9 = Light Blue                  #>>SETTINGS.WTF
    ECHO #   2 = Green       A = Light Green                 #>>SETTINGS.WTF
    ECHO #   3 = Aqua        B = Light Aqua                  #>>SETTINGS.WTF
    ECHO #   4 = Red         C = Light Red                   #>>SETTINGS.WTF
    ECHO #   5 = Purple      D = Light Purple                #>>SETTINGS.WTF
    ECHO #   6 = Yellow      E = Light Yellow                #>>SETTINGS.WTF
    ECHO #   7 = White       F = Bright White                #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   MODIFIED_SET - must be set to '1' is set to     #>>SETTINGS.WTF
    ECHO #   '0' which will stop the .bat from loading       #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO BACKUP_DIR=%BACKFOLD%>>SETTINGS.WTF
    ECHO REALMLIST_DIR=%RLMBAKDIR%>>SETTINGS.WTF
    ECHO MODIFIED_SET=1 >>SETTINGS.WTF
    ECHO BAT_TITLE=World of Warcraft Realmlist tool by DougH>>SETTINGS.WTF
    ECHO DEFAULT_COL=02>>SETTINGS.WTF
    GOTO FINALBUILD
    :FAILSAFE
    SET BRAND=%RANDOM%
    IF EXIST "%DEFDIR%\WoW.exe" GOTO MAKECOPY1
    IF NOT EXIST "%DEFDIR%\WoW.exe"WoW.exe FAILEDCOPY
    :FAILEDCOPY
    ECHO the path:
    ECHO %DEFDIR%
    ECHO is not a Valid WoW (World Of Warcraft)
    ECHO install directory, please press
    ECHO any key to exit.
    PAUSE
    EXIT 1
    :MAKECOPY1
    COPY "REALMLIST.WTF" "%DEFDIR%\REALMLIST.ABC"
    DEL REALMLIST.WTF
    CD %DEFDIR%
    :MAKECOPY2
    IF NOT EXIST REALMLIST.ABC GOTO BLAGH
    IF EXIST REALMLIST.WTF GOTO BOOMBOOMCHAKA
    IF NOT EXIST %BACDIR% GOTO MAKEFOLD
    COPY "Data\%LANGDIR%\REALMLIST.WTF" "%BACDIR%\%BRAND%-realmlist.orig"
    DEL "Data\%LANGDIR%\REALMLIST.WTF"
    COPY "REALMLIST.ABC" "Data\%LANGDIR%\REALMLIST.WTF"
    DEL REALMLIST.ABC
    GOTO ACOMPLETE
    :BOOMBOOMCHAKA
    IF NOT EXIST %BACDIR% GOTO MAKEFOLD
    COPY "REALMLIST.WTF" "%BACDIR%\%BRAND%-realmlist.orig"
    DEL "REALMLIST.WTF"
    REN "REALMLIST.ABC" "REALMLIST.WTF"
    GOTO ACOMPLETE
    :BLAGH
    ECHO for some reason, the application could not
    ECHO copy the new configuration.
    ECHO if on vista please run the batch as 
    ECHO Administrator.
    PAUSE
    GOTO MAKECOPY1
    EXIT
    :MAKEFOLD
    MKDIR %BACDIR%
    GOTO MAKECOPY2
    :ACOMPLETE
    CLS
    CD C:\
    IF NOT EXIST SETTINGS GOTO MIDRANGE
    CD C:\SETTINGS
    ECHO #####################################################>SETTINGS.WTF
    ECHO ###################SYSTEM SETTINGS###################>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   DEFAULTDIR - this setting is for the install    #>>SETTINGS.WTF
    ECHO #   Directory of World of warcraft EX:              #>>SETTINGS.WTF
    ECHO #   C:\Users\Public\Games\World of Warcraft         #>>SETTINGS.WTF
    ECHO #   Make sure the "\" isnt on the end ;)            #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   LANGUAGEDIR - this setting is for your          #>>SETTINGS.WTF
    ECHO #   World of Warcraft Version  EX: enUS or enGB     #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   CHANGETIME - this is just a reference for the   #>>SETTINGS.WTF
    ECHO #   Backup part of the .bat                         #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   REALMLIST_BACKUP - same as above :P             #>>SETTINGS.WTF
    ECHO #   Backup part of the .bat  states the name of     #>>SETTINGS.WTF
    ECHO #   backed up realmlist.wtf. changing wont allow    #>>SETTINGS.WTF
    ECHO #   you to restore backup properly                  #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO DEFAULTDIR=%DEFDIR%>>SETTINGS.WTF
    ECHO LANGUAGEDIR=%LANGDIR%>>SETTINGS.WTF
    ECHO CHANGETIME=%TIME% %DATE%>>SETTINGS.WTF
    ECHO REALMLIST_BACKUP=%BRAND%-REALMLIST.ORIG>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO ###################REALM SETTINGS####################>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   ENABLEDEXTRA - this setting is for the addable  #>>SETTINGS.WTF
    ECHO #   Realms (2 extra available atm, if you need more #>>SETTINGS.WTF
    ECHO #   contact me at [email protected])         #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   ONEREALM* - these settings (realmlist,          #>>SETTINGS.WTF
    ECHO #   patchlist, realmname) are pretty obvious        #>>SETTINGS.WTF
    ECHO #   PATCHLIST the address to login server           #>>SETTINGS.WTF
    ECHO #   PATCHLIST the patchlist (if applicable, leave   #>>SETTINGS.WTF
    ECHO #   blank if not used for the realm                 #>>SETTINGS.WTF
    ECHO #   REALMNAME - name of realm to appear in .bat     #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO ENABLEDEXTRA=%EXTRA% >>SETTINGS.WTF
    ECHO ONEREALMLIST=%ORL%>>SETTINGS.WTF
    ECHO ONEPATCHLIST=%OPL%>>SETTINGS.WTF
    ECHO ONEREALMNAME=%ORN%>>SETTINGS.WTF
    ECHO TWOREALMLIST=%TRL%>>SETTINGS.WTF
    ECHO TWOPATCHLIST=%TPL%>>SETTINGS.WTF
    ECHO TWOREALMNAME=%TRN%>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO ###################BATCH SETTINGS####################>>SETTINGS.WTF
    ECHO #   BACKUP_DIR - customize name of folder to store  #>>SETTINGS.WTF
    ECHO #   backed up realmlist                             #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   REALMLIST_DIR - this is a .bat set setting,     #>>SETTINGS.WTF
    ECHO #   changing could make the .bat not work           #>>SETTINGS.WTF
    ECHO #   unless its NOT_SET if in that case, read        #>>SETTINGS.WTF
    ECHO #   readme for more information.. or fill in ;)     #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   BAT_TITLE - this is the title of .bat.          #>>SETTINGS.WTF
    ECHO #   can be changed.                                 #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   DEFAULT_COL - this setting is for the default   #>>SETTINGS.WTF
    ECHO #   color of bat window, color codes are:           #>>SETTINGS.WTF
    ECHO #   0 = Black       8 = Gray                        #>>SETTINGS.WTF
    ECHO #   1 = Blue        9 = Light Blue                  #>>SETTINGS.WTF
    ECHO #   2 = Green       A = Light Green                 #>>SETTINGS.WTF
    ECHO #   3 = Aqua        B = Light Aqua                  #>>SETTINGS.WTF
    ECHO #   4 = Red         C = Light Red                   #>>SETTINGS.WTF
    ECHO #   5 = Purple      D = Light Purple                #>>SETTINGS.WTF
    ECHO #   6 = Yellow      E = Light Yellow                #>>SETTINGS.WTF
    ECHO #   7 = White       F = Bright White                #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #   MODIFIED_SET - must be set to '1' is set to     #>>SETTINGS.WTF
    ECHO #   '0' which will stop the .bat from loading       #>>SETTINGS.WTF
    ECHO #                                                   #>>SETTINGS.WTF
    ECHO #####################################################>>SETTINGS.WTF
    ECHO.>>SETTINGS.WTF
    ECHO BACKUP_DIR=%BACDIR%>>SETTINGS.WTF
    ECHO REALMLIST_DIR=%RLMDIR%>>SETTINGS.WTF
    ECHO MODIFIED_SET=1 >>SETTINGS.WTF
    ECHO BAT_TITLE=%BATLE%>>SETTINGS.WTF
    ECHO DEFAULT_COL=%DEFCOL%>>SETTINGS.WTF
    GOTO FINALE
    :MIDRANGE
    MKDIR SETTINGS
    GOTO ACOMPLETE
    :FINALE
    ECHO Congradulations!
    ECHO World Of Warcraft has been successfully updated
    ECHO to you servers IP.
    ECHO Please press 1 to start WoW
    ECHO or Press x to exit
    SET KEY=0
    SET /P KEY=
    IF /I '%KEY%' EQU '1' GOTO STARTWOW
    IF /I '%KEY%' EQU 'x' GOTO EXIT
    EXIT 0
    :STARTWOW
    START "%DEFDIR%\WoW.EXE" -console
    EXIT
    the above script (when configured) will automaticly change your realmlist at the push of about 2 buttons.
    to configure, just run the .bat and choose either the wizard, make settings.wtf, and make settings.wtf and readme.
    keep in mind that the wizard is the easiest, but leaves out a few settings, the config file is automaticly written in C:\SETTINGS
    as SETTINGS.WTF with a MUCH better layout and more information on the settings.
    as in the old version, just put the directory like C:\Users\Public\Games\World of Warcraft
    without the "\" on the end like C:\Users\Public\Games\World of Warcraft\
    also, IF (however very unlikely) your realmlist.wtf is in main directory where WoW.exe is, just put \ for the realmlist directory, if its in Data\{version\ just put data
    and for version, just put like, for us its enUS for europe its enEU, etc.
    and to add the extra realms just edit config and add the name, and ip/dns, and if theres no patchlist just put the ip
    and for enabledextra (setting for choosing the additional realms (they wont appear in list without this setting enabled)
    default is 0, change to 1 for 1 extra, or 2 for 2.. if u need more custom realms just tell me the # u need
    Last edited by dough; 02-27-2009 at 12:04 AM. Reason: updated script

    change your realmlist quick and easy through .bat ;)
  2. #2
    majinbuu1023's Avatar Contributor
    Reputation
    89
    Join Date
    Mar 2007
    Posts
    380
    Thanks G/R
    2/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice +rep

    could you make one that says

    press 1 to go on US realms
    press 2 to go on EU realms

    and whatever u press it changes the realmlist and goes to that specific wow,

    cheers

  3. #3
    dough's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2006
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    first topic has the code built in for US and EU
    just use that one to choose xD
    Last edited by dough; 01-01-2009 at 06:27 PM. Reason: removed code and edited 1rst topic

  4. #4
    Premium-mmo's Avatar Banned
    Reputation
    191
    Join Date
    Dec 2006
    Posts
    636
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I am not a programmer but this seems an interesting code +rep and thx

  5. #5
    g0at's Avatar Member
    Reputation
    6
    Join Date
    Oct 2006
    Posts
    48
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nice guide! +rep

  6. #6
    dough's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2006
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    this time around its not dependant on enUS version and will ask for your version to be able to do the copy, it now reads/writes perfectly from its own config file (settings.wtf). which looks similar to this once its made:
    Code:
     
     
    #####################################################
    ###################SYSTEM SETTINGS###################
    # #
    # DEFAULTDIR - this setting is for the install #
    # Directory of World of warcraft EX: #
    # C:\Users\Public\Games\World of Warcraft #
    # Make sure the "\" isnt on the end ;) #
    # #
    # LANGUAGEDIR - this setting is for your #
    # World of Warcraft Version EX: enUS or enGB #
    # #
    # CHANGETIME - this is just a reference for the #
    # Backup part of the .bat #
    # #
    # REALMLIST_BACKUP - same as above :P #
    # Backup part of the .bat states the name of #
    # backed up realmlist.wtf. changing wont allow #
    # you to restore backup properly #
    # #
    #####################################################
    DEFAULTDIR=C:\Users\Public\Games\World of Warcraft
    LANGUAGEDIR=enUS
    CHANGETIME=18:41:50.30 18/02/2009
    REALMLIST_BACKUP=15486-REALMLIST.ORIG
    #####################################################
    ###################REALM SETTINGS####################
    # #
    # ENABLEDEXTRA - this setting is for the addable #
    # Realms (2 extra available atm, if you need more #
    # contact me at [email protected]) #
    # #
    # ONEREALM* - these settings (realmlist, #
    # patchlist, realmname) are pretty obvious #
    # PATCHLIST the address to login server #
    # PATCHLIST the patchlist (if applicable, leave #
    # blank if not used for the realm #
    # REALMNAME - name of realm to appear in .bat #
    # #
    #####################################################
    ENABLEDEXTRA=1 
    ONEREALMLIST=realmname.orig.ath.cx
    ONEPATCHLIST=realmlist.patchlist.cx
    ONEREALMNAME=testrealm
    TWOREALMLIST=
    TWOPATCHLIST=
    TWOREALMNAME=
    #####################################################
    ###################BATCH SETTINGS####################
    # BACKUP_DIR - customize name of folder to store #
    # backed up realmlist #
    # #
    # REALMLIST_DIR - this is a .bat set setting, #
    # changing could make the .bat not work #
    # unless its NOT_SET if in that case, read #
    # readme for more information.. or fill in ;) #
    # #
    # BAT_TITLE - this is the title of .bat. #
    # can be changed. #
    # #
    # DEFAULT_COL - this setting is for the default #
    # color of bat window, color codes are: #
    # 0 = Black 8 = Gray #
    # 1 = Blue 9 = Light Blue #
    # 2 = Green A = Light Green #
    # 3 = Aqua B = Light Aqua #
    # 4 = Red C = Light Red #
    # 5 = Purple D = Light Purple #
    # 6 = Yellow E = Light Yellow #
    # 7 = White F = Bright White #
    # #
    # MODIFIED_SET - must be set to '1' is set to #
    # '0' which will stop the .bat from loading #
    # #
    #####################################################
    BACKUP_DIR=BACKUP
    REALMLIST_DIR=data
    MODIFIED_SET=1 
    BAT_TITLE=WoW Realmlist Changer by 2009 DougH
    DEFAULT_COL=09

    Pros:
    set realmlist to one of many that you set
    backs up old realmlist quickly and easily without overwriting old backups
    saves configuration settings so its even more automated then before
    easily restore realmlist for either EU or US versions
    easily customizable

    cons:

    [s]doesnt allow restoring of backup (yet. seeing as its a auto generated name (cant put time stamp on it) its kind of hard to work with)[/s]
    screw that. now it does and still keeps its auto generated name, and loads the last backed up realmlist from settings.wtf
    Last edited by dough; 02-18-2009 at 05:57 PM.

  7. #7
    dough's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2006
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    01/03/2009
    updated the script again to streamline it a lil

  8. #8
    Nivelo's Avatar Member
    Reputation
    10
    Join Date
    Jan 2007
    Posts
    29
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's some heavy bat-ing +Rep altough i'm not gonna use it

  9. #9
    dough's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2006
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there... finally works how i wanted it to:P
    whats changed:
    completely redid config
    config now saved in C:\SETTINGS (will automaticly make folder)
    added a config wizard for config (wont show settings for color and title xD
    new config settings (including)
    added the 2 extra realms as config setting for easier customization
    added color option to config for more customizeability
    added title option to config for more customizeability
    added option to customize the backup directory name
    completely redid script
    added setting infos to config file
    added a backup "wizard"
    streamlined the code a bit better..

  10. #10
    Keithh's Avatar Banned
    Reputation
    86
    Join Date
    Mar 2008
    Posts
    493
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You put some time into this man! +Rep!

  11. #11
    dough's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2006
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thx xD
    i just noticed the backup part isnt working properly.. ill fix it tomorrow i gota get some sleep, i work in 7 hours xD
    Last edited by dough; 02-18-2009 at 06:11 PM.

  12. #12
    dough's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2006
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ROFL nvm, just looked it over, was just a typo in code... fixxed
    CD %DEFDIR%
    was simply
    CD %DEFDIR
    and
    :RSTOREBAKUP
    was
    :RRSTOREBAKUP
    i was a lil high dont ask xD
    guess its what i get for completely rebuilding the script from scratch xD bound to get a few typos...

  13. #13
    dough's Avatar Active Member
    Reputation
    20
    Join Date
    Nov 2006
    Posts
    26
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    if i could, could i plz get sum1 to test this.. found another SMALL issue with the copy.. and need sum1 to test..

Similar Threads

  1. Lazy, quick, and easy Alliance leveling (lvl 1-35ish)
    By Jaktag in forum World of Warcraft Guides
    Replies: 14
    Last Post: 01-13-2007, 10:48 PM
  2. Quick and easy moneymaking as dwarf or gnome
    By x_jonnyb.good_x in forum World of Warcraft Guides
    Replies: 1
    Last Post: 08-17-2006, 09:34 AM
  3. Quick and easy way to level up your skinning at low levels.
    By Shanka in forum World of Warcraft Guides
    Replies: 6
    Last Post: 08-09-2006, 05:24 PM
  4. Quick and easy guide to unique instance items at lower levels :)
    By Shanka in forum World of Warcraft Guides
    Replies: 4
    Last Post: 08-01-2006, 04:41 PM
All times are GMT -5. The time now is 12:17 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search