Verifying a file is open

Results 1 to 2 of 2

Thread: Verifying a file is open

  1. #1
    Join Date
    Dec 1969

    Default Verifying a file is open

    Is there a way to verify in asp/vbscript that a file has been successfully opened?<BR>

  2. #2
    jason Guest

    Default RE: Verifying a file is open

    well, yes, it doesn&#039t throw an error.<BR><BR>just check the value of the object reference<BR><BR>set myFile = objFSO.OpenTextFile("your/path")<BR><BR>if myFile.ReadAll() &#060;&#062; "" then<BR><BR>.. do stuff<BR><BR>end if<BR><BR>jason

Posting Permissions

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