| |
networknovice
Posts: 1
Score: 0
Joined: 11/2/2004
From:
Status: offline
|
Hi, I could execute the following script in my local machine whereas if I send the html page as an attachment to my friends, they couldn't execute this html page from outlook.If they save it to the local harddisk the html page is getting executed. <script type="text/vbscript"> dim wshNetwork dim User set wshNetwork = CreateObject("WScript.Network") dom = wshNetwork.Userdomain Compname = wshNetwork.computername User = wshNetwork.Username 'to extract the network username msg1=msgbox ("Computername: "& Compname+chr(13)&chr(10)+"Domain name: "&dom,vbinformation,"Domain and Computer name") msgbox "Username: "&User dattimemsg=msgbox ("Date: " &date &" Time: " & time,vbonly, "Date and Time") set wshnetwork=nothing </script> Note: The error reported if executed by double clicking from the email is: ActiveX Component can't create object: 'WScript.Network' What shall I do to execute this code? It is urgent.Kindly reply asap.
|
|