
Client side script can't use fso from IIS
that happened to me too. it took days for me to relize
that the fso will never run on the client only localy.
its a permisions thing. would you want to brows to a page
on the net and have it have a script use the fso to delet
your hard drive? it may work though if the settings in ie
are set to the lowest permitable. otherwise use an ocx or
applet
Quote:
>-----Original Message-----
>This one is making me crazy.
>I've created an html page with a vbscript similar to
this:
><script language="vbscript">
><!--
>Sub MakeFile
> Dim fso, myFile
> Set fso = CreateObject("Scripting.FileSystemObject")
> Set myFile = fso.CreateTextFile("c:\Time.rtf", True)
> myFile.WriteLine "test1"
> myFile.WriteLine "test2"
> myFile.Close
>End Sub
>-->
></script>
>and in the body of the page there is an input of
type "button" which calls
Quote:
>the sub in its onclick event.
>This script works fine if I simply open the page in a
browser and click the
Quote:
>button. However, if I put the page into my wwwroot
folder and open it via
Quote:
>IIS, I get this error when I try to run the script:
>Error: ActiveX component can't create
object: 'Scripting.FileSystemObject'
Quote:
>The error refers to the line "Set fso =
>CreateObject("Scripting.FileSystemObject")".
>I haven't found any relevant help from the knowledge
base or in searching
Quote:
>the web.
>Anyone have an idea?
>TIA,
>Craig G
>.