Very cool.

Thought I'd give it a whirl, and got this error.
Here's my script edited with my paths.
Code:
var args = WScript.Arguments;
var Wsh = new ActiveXObject("WScript.Shell");
//Terminates the l2authd program
Wsh.Exec("taskkill /F /IM C2AuthD_0500623.exe");
//Wait 3 seconds
WScript.Sleep(3000);
//Connect to MSSQL
var conn = new ActiveXObject("ADODB.Connection");
//Change this path to whatever path you have the lin2db.dsn file
conn.Open("File Name=C:\\Program Files\\Common Files\\ODBC\\Data Sources\\lin2db.dsn");
//Update the ip taken from the argument to the server with world id 1
conn.Execute("UPDATE server SET ip='"+args(0)+"' WHERE id=1");
conn.Close();
WScript.Sleep(3000);
//Run again the l2authd server
/* Change the command to your settings
for example cmd /D /C DRIVE & CD DRIVE:\\path\\to\\l2authd\\ & l2authd.exe
*/
Wsh.Run("C:\\server\\NewAuth\\C2AuthD_0500623.exe");
//This should work just fine, otherwise you did something wrong, double check paths...
It's mind boggling because paths are fine. Checked line 11 for the error and looks fine to me. Even changed it to FileDSN=C: and I still got the same error. It's driving me mad. :tard:
And yes, server is up and fully functional with no errors.