Results 1 to 7 of 7

Thread: Help - Help - Help

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Posts
    229

    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>
    ------------------

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    <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)

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Posts
    229
    Dear Sastraxi,

    Thanks for the reply, but it prompts me "Object Required: Server"
    How to solve this?

    Thanks again in advance
    Keiko

  4. #4
    kayoca
    Guest
    If your using ASP scripts? What kind of server are you using?

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Sep 1999
    Posts
    229
    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?

  6. #6
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    *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)

  7. #7
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    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
  •  



Click Here to Expand Forum to Full Width