-
Help - Help - Help
Dear all experts,
Why everytime I use CreateObject statement it doesn't work if
I execute the script remotely?
For instance:
I have the script file on my C drive and I execute it, it works.
BUT if I have the script file on my remote computer and I share & map
the drive of that remote computer then I execute the script
file from my PC, then it doesn't work.
Question for experts:
How to make it works? Both local and remote computer have
WSH installed.
Thanks in advance
Keiko
Filename: Test.htm
------------------
<html><body><script language = "VBScript">
Set objOutlook = CreateObject("Scripting.FileSystemObject")
</script></body></html>
------------------
-
<html><body><script language = "VBScript" RUNAT=Server>
Set objOutlook = Server.CreateObject("Scripting.FileSystemObject")
</script></body></html>
-
Dear Sastraxi,
Thanks for the reply, but it prompts me "Object Required: Server"
How to solve this?
Thanks again in advance
Keiko
-
If your using ASP scripts? What kind of server are you using?
-
Hi kayoca,
I currently I'm using a shared high-end PC (windows 98)
but it's possible for me to put the script on
NT4.0 or Windows 2000 Server in the future.
Any suggestions?
-
*hmm...
that would explain it.
that's ASP, it needs an interpreter to run it, like PWS.
You put your ASPs into a folder, set that up as your internet folder, and access them as so...
http://your_computer's_name/me.asp
-
I think if IE accesses a file off your local filesystem (ex: C:\Work\test.html) , it would run with very high security privileges (it could create the objects). If you run it from a shared drive (\\compname\folder\test.html) it would run with the priveleges set in IEs local intranet security zone.