File System Object not working

Results 1 to 2 of 2

Thread: File System Object not working

  1. #1
    Chris Doherty Guest

    Default File System Object not working

    I am trying to use the FileExists and FolderExists methods of the FileSystemObject to determine whether or not certain files and folders exist. The code below returns false all three times, but the files DO actually exist. Can anyone help me to resolve this problem?<BR><BR>&#060;%<BR> set fso = Server.CreateObject("Scripting.FileSystemObject")< BR> Response.Write fso.FileExists("\clientbbsBBSDOWNLOAD001List.dir" )<BR> Response.Write fso.FolderExists("Z:DOWNLOAD001")<BR> Response.Write fso.FileExists("C:Test.txt")<BR> set fso = nothing<BR>%&#062;<BR><BR>Thanks,<BR>Chris

  2. #2
    Join Date
    Dec 1969

    Default RE: File System Object not working

    hi,<BR>fso checks for the actual physical path, not the virtual path. care has to be taken to make sure that u give a physical path. if a physical path is given correctly, it should show true.<BR><BR>:-)<BR>baby johnson

Posting Permissions

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