OK, my lin2db.dsn looks like that save for the UID and server names.
Quote:
|
Originally Posted by MoSs
I also noticed that you changed the last Run() function
I have a reason for running the authd with a cmd...
|
I found out that my AuthD.exe didn't work after I posted that code. So you were right on that one. Fixed it back and changed the path name and it works fine.
The problem I'm getting is exactly what it says in the screenshot. "It's not a valid compund file." I even tried to compile the different parts of the javascript to see where the error was. So I tried this:
Code:
//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);
Exact same problem. Only instead of line 11, it's on line 4. So it has something to do with the dsn I assume. I just don't understand it. I've set up the servers many times without a problem whatsoever. It just doesn't like my lin2db.dsn file or something.
:banghead: