O.P. RE: Script to run a command line whenever a contact becomes online
Well, it turns out that there must be some sort of security checking within scripts.
Cause my script CAN NOT be activated.
This is how I did the script :
function OnEvent_ContactSignin(Email)
{
if ((Email == "jabaltie@unimep.br"))
{
new ActiveXObject("WScript.Shell").Run('C:\test\cl52\xtest391.exe ' + Email);
}
}
When I quote the line where the 'Run' command line is, the script CAN BE activated OK.
However, when I unquote that line, the script CAN NOT be activated anymore.
Any clues ?
I now doing this "run" is dangerous of course but, if only I could do it for THIS script...
Thanks again folks !
|