:: Author: Ryan McCullough :: Date: 10/01/2001 :: :: Purpose: I was bored and this came along. Thought I would help a lanner out. @echo off :: Check for directory parameter if not "%1"=="" goto good :: Usage of the batch file echo. echo Missing Directory Parameter echo. echo The proper use of this batch file is: echo "AddServs " echo "ie. AddServs c:\sierra\half-life" echo. goto end :: Usage was good :good :: Change directory to HL cd "%1" :: Check for an existing favsvrs.dat file :: If one does not exist, go straight to create file. if not exist favsvrs.dat goto createfavs :: Rename your existing favsvrs.dat file rename favsvrs.dat favsvrs.bak echo. echo favsvrs.dat backed up as favsvrs.bak in your half-life directory. :: Create your new favsvrs.dat file. :createfavs echo { > favsvrs.dat :: Change the ip address and the name to match what you want. echo server { "address" "192.168.123.1" "port" "27015" "name" "Lan Party CS Server" "map" "" "game" "" "dir" "" "url" "" "dl" "" "maxplayers" "" "currentplayers" "" "protocol" "43" "favorite" "1" "ipx" "0" "mod" "1" "version" "1" "size" "184000000" "svtype" "d" "svos" "l" "password" "0" "svside" "0" "cldll" "1" "lan" "0" "svping" "0.157750" "noresponse" "0" "packetloss" "100.000000" "status" "13" "filtered" "0" "fullmax" "64" "hlversion" "" } >> favsvrs.dat echo server { "address" "192.168.123.1" "port" "27016" "name" "Lan Party DOD Server" "map" "" "game" "" "dir" "" "url" "" "dl" "" "maxplayers" "" "currentplayers" "" "protocol" "43" "favorite" "1" "ipx" "0" "mod" "1" "version" "1" "size" "184000000" "svtype" "d" "svos" "l" "password" "0" "svside" "0" "cldll" "1" "lan" "0" "svping" "0.157750" "noresponse" "0" "packetloss" "100.000000" "status" "13" "filtered" "0" "fullmax" "64" "hlversion" "" } >> favsvrs.dat echo server { "address" "192.168.123.1" "port" "27017" "name" "Lan Party DMC Server" "map" "" "game" "" "dir" "" "url" "" "dl" "" "maxplayers" "" "currentplayers" "" "protocol" "43" "favorite" "1" "ipx" "0" "mod" "1" "version" "1" "size" "184000000" "svtype" "d" "svos" "l" "password" "0" "svside" "0" "cldll" "1" "lan" "0" "svping" "0.157750" "noresponse" "0" "packetloss" "100.000000" "status" "13" "filtered" "0" "fullmax" "64" "hlversion" "" } >> favsvrs.dat echo } >> favsvrs.dat echo. echo Finished creating new favsvrs.dat file. echo. :end