Why Server.CreateObject("Scripting.FileSystemObject") failed

Results 1 to 2 of 2

Thread: Why Server.CreateObject("Scripting.FileSystemObject") failed

  1. #1
    Peng Guest

    Default Why Server.CreateObject("Scripting.FileSystemObject") failed

    I tried to create a txt file on the server using above code. I got an error saying create object failed. But the book says that Scrrun.DLL is installed by default when IIS4 is installed. Why does it not work?

  2. #2
    Jason Buck Guest

    Default RE: Why Server.CreateObject(

    &#060;%<BR> Dim fso, MyFile<BR> Set fso = CreateObject("Scripting.FileSystemObject")<BR> Set MyFile = fso.CreateTextFile("c: estfile.txt", True)<BR> MyFile.WriteLine("This is a test.")<BR> MyFile.Close<BR><BR>%&#062;<BR><BR>This information was found on the MSDN Site.<BR><BR>http://msdn.microsoft.com/scripting/vbscript/doc/vsmthCreateTextFile.htm<BR><BR>Respectfully,<BR><B R>Jason<BR>webmaster@wnj.com<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •