|
-
May 10th, 2001, 09:16 PM
#1
Thread Starter
Addicted Member
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>
------------------
-
May 10th, 2001, 10:00 PM
#2
Good Ol' Platypus
<html><body><script language = "VBScript" RUNAT=Server>
Set objOutlook = Server.CreateObject("Scripting.FileSystemObject")
</script></body></html>
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
May 10th, 2001, 10:35 PM
#3
Thread Starter
Addicted Member
Dear Sastraxi,
Thanks for the reply, but it prompts me "Object Required: Server"
How to solve this?
Thanks again in advance
Keiko
-
May 11th, 2001, 03:41 AM
#4
If your using ASP scripts? What kind of server are you using?
-
May 11th, 2001, 04:47 AM
#5
Thread Starter
Addicted Member
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?
-
Jun 16th, 2001, 02:25 PM
#6
Good Ol' Platypus
*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
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Jun 18th, 2001, 12:11 PM
#7
Black Cat
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.
Josh
Get these: Mozilla Opera OpenBSD
I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|