Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default FileSystemObject

    Hi!

    I have written a sub routine which opens a file and write in it.
    The code I wrote is the following:

    Sub WriteToFile(afm,data)
    Dim filename,objFSO,objFile
    filename=afm

    Set objFSO=CreateObject("Scripting.FileSystemObject")
    Set objFile=objFSO.CreateTextFile(filename,true)
    objFile.WriteLine data

    objFile.Close

    end sub

    However, when I call the sub through the browser (I.E.) seems to take for
    ages in order to handle the script.(when I remove the script evrything works
    fine)
    I Google it, and I found that maybe I should deactivate the anti-virus.I did
    it.Nothing.

    Any ideas?Please.The whole thing drives me crazy.I have done it before with
    VB 6.0 and it worked pretty well.

    Thnx John


    John Guest

  2. Similar Questions and Discussions

    1. Problems with FileSystemObject
      Hi, I'm really new to ASP and was following along with a tutorial in a book. When dealing with the FileSystemObject component, I found that...
    2. FileSystemObject protocol
      Can anyone tell me which protocol (http/s, RPC) or service (w3svc) is used when using FileSystemObject in an ASP page? Thank you,
    3. Using FileSystemObject to write across the network
      I'm pulling my hair out over this one. I've got a web page that I need to have write to another server across the network. The site in question does...
    4. Scripting.FileSystemObject
      Hi everybody, found strange behavior in Scripting.FileSystemObject; only FileExists() method seems to work fine. All other methods cause browser...
    5. FileSystemObject not working?
      If you have not yet hanged yourself, see here. http://www.aspfaq.com/2180 Ray at home -- Will trade ASP help for SQL Server help "Kathy"...
  3. #2

    Default Re: FileSystemObject

    What does this have to do with databases?
    Please don't multi-post. See [url]http://www.aspfaq.com/5003[/url]


    Aaron Bertrand [MVP] Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139