The Aion BIN/EXE file supports parameters for the IP address and port number which the L2.bin file does not or if it does the parameters are not -ip or -port, you can do this same thing with your batch file like this.
Code: Select all
Test.batecho %1 L2authd.lineage2.com > %2echo %1 L2testauthd.lineage2.com >> %2
Example: You can type from the command prompt "test.bat 99.99.99.99 test.txt" and you have a new file in the same directory as the test.bat file looking like this.
Code: Select all
test.txt99.99.99.99 L2authd.lineage2.com99.99.99.99 L2testauthd.lineage2.com
Batch files support parameters after the command like this "Command.bat %1 %2 %3 %4 and so on"
when we type "test.bat 99.99.99.99 test.txt" there is a space between 99.99.99.99 and test.txt so it took the 99.99.99.99 as the first parameter and the test.txt as the second parameter which changed the batch file to look like this
Code: Select all
Test.batecho 99.99.99.99 L2authd.lineage2.com > test.txtecho 99.99.99.99 L2testauthd.lineage2.com >> test.txt
In DOS the echo command by default just echoes back any code type after the command to the screen and in your code your using two pararmeters to redirect what you type to a file and the first pararmeter of "> %windir%\system32\drivers\etc\hosts" will copy your output to a new file named hosts and if the file is already there it will overwrite it and the second parameter of ">> %windir%\system32\drivers\etc\hosts" will append your text to a current file named hosts and will not delete any info in the current file it will just add your text to the end of the file. (BTW: For Windows Vista and Windows 7 users they will have to run this file as administrator or Windows will not let them delete or append any data to any system files.)
For most users this is fine but if you have any users that also use thier computer for work and have any info in the hosts file to connect to any work servers or domains your file will delete this info and they will not be able to connect to there work comupters anymore or if they play any other games that change the hosts file they will not be able to connect to any of those games anymore.