PDA

View Full Version : Need help with a batch file


Northwood_DK
12-01-2005, 02:06 AM
I have used Thuls walk-thru on the HFL forum to set up a batch file for the two leagues I’m currently inn (eNFL and NAFL) and its working fine.
http://www.shalkith.com/forum/viewtopic.php?t=5

Now I want to add a 3rd league. What will I need to do with the batch file?

Icy
12-01-2005, 02:33 AM
First create a backup of your league, pictures and universe folders and rename them this way:
NOTE:
XXX is the new league
YYY is for example the HFL
ZZZ is for example the CFL

universe_YYY
universe_YYY
Pictures_YYY

Pictures_ZZZ
leagues_ZZZ
leagues_ZZZ

Pictures_XXX
leagues_XXX
leagues_XXX

Then just create a batch file for each league exactly the same way, you can have one batch file per league, following this formula and just changing the XXX, YYY and ZZZ for your league names:

Writing the XXX batch file: (again subsitute your other league for XXX)
1) Make a backup of your FOF2004 folder, just in case!
2) Open a text editor, like notepad
3) type the following:



if exist leagues_YYY\nul goto ZZZ
ren leagues leagues_YYY
ren Pictures Pictures_YYY
ren universe universe_YYY

:ZZZ
if exist leagues_ZZZ\nul goto end
ren leagues_ZZZ leagues
ren Pictures_ZZZ Pictures
ren universe_ZZZ universe

ren leagues_XXX leagues
ren Pictures_XXX Pictures
ren universe_XXX universe

goto end

:end
start frfoot2004.exe



4) Save the file as XXX.bat in your FOF2004 folder (being XXX the name of your league). If done right, you should just be able to double click this whenever you want to get into the XXX and it will swap the files for you, if necessary.

Writing the YYY batch file: (again subsitute your other league for YYY)
1) Make a backup of your FOF2004 folder, just in case!
2) Open a text editor, like notepad
3) type the following:



if exist leagues_XXX\nul goto ZZZ
ren leagues leagues_XXX
ren Pictures Pictures_XXX
ren universe universe_XXX

:ZZZ
if exist leagues_ZZZ\nul goto end
ren leagues_ZZZ leagues
ren Pictures_ZZZ Pictures
ren universe_ZZZ universe

ren leagues_YYY leagues
ren Pictures_YYY Pictures
ren universe_YYY universe

goto end

:end
start frfoot2004.exe



4) Save the file as YYY.bat in your FOF2004 folder (being YYY the name of your league). If done right, you should just be able to double click this whenever you want to get into the YYY and it will swap the files for you, if necessary.


Writing the ZZZ batch file: (again subsitute your other league for ZZZ)
1) Make a backup of your FOF2004 folder, just in case!
2) Open a text editor, like notepad
3) type the following:



if exist leagues_XXX\nul goto YYY
ren leagues leagues_XXX
ren Pictures Pictures_XXX
ren universe universe_XXX

:YYY
if exist leagues_YYY\nul goto end
ren leagues_YYY leagues
ren Pictures_YYY Pictures
ren universe_YYY universe

ren leagues_ZZZ leagues
ren Pictures_ZZZ Pictures
ren universe_ZZZ universe

goto end

:end
start frfoot2004.exe



4) Save the file as ZZZ.bat in your FOF2004 folder (being ZZZ the name of your league). If done right, you should just be able to double click this whenever you want to get into the ZZZ and it will swap the files for you, if necessary.

Icy
12-01-2005, 03:02 AM
Btw, if it sounds complicated to you, just pm me and i'll create it for you and then email you the 3 files.

Northwood_DK
12-01-2005, 03:58 AM
Gracias