PLEASE help:FileScriptingObject

Results 1 to 3 of 3

Thread: PLEASE help:FileScriptingObject

  1. #1
    Diana Guest

    Default PLEASE help:FileScriptingObject

    I want to create a file from my ASP page and store it on the server. My [process does not crash, but the file is not created either.<BR><BR>Dim fso <BR>Set fso = Server.CreateObject("Scripting.FileSystemObject")< BR>Dim txtfile<BR>my_file = "c:Inetpubwwwrootmetrologic_kbdocsdoc1.txt"<BR >Set txtfile = fso.CreateTextFile("my_file", True, False)<BR>txtfile.Close

  2. #2
    Join Date
    Dec 1969

    Default RE: PLEASE help:FileScriptingObject

    Try this,<BR><BR>Dim fs, msg<BR>Set fs = CreateObject("Scripting.FileSystemObject")<BR>Set msg = fs.CreateTextFile("c:Inetpubwwwrootmetrologic_kbdo csdoc1.txt"<BR>, True)<BR>msg.WriteLine("This is a text file")<BR>msg.Close<BR>set fs = nothing<BR>set msg = nothing

  3. #3
    Diana Guest

    Default RE: PLEASE help:FileScriptingObject

    It&#039s working !!!! Thank you so much.

Posting Permissions

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