Check if file exist on a network?

Results 1 to 2 of 2

Thread: Check if file exist on a network?

  1. #1
    Join Date
    Dec 1969

    Default Check if file exist on a network?

    Hello, ok I am building and intranet and i need to check if a file exist in a folder on the network. The folders are in the R drive, the web server is on the same network as the other servers. I have tried this code below but I can only check the files on the website.<BR><BR>Set fs = CreateObject("Scripting.FileSystemObject")<BR> if fs.fileexists("filename")=true then<BR> Response.Write "Exist" <BR> else<BR> response.write "Doesnt Exist"<BR> end if<BR> <BR> set fs = nothing<BR><BR><BR>Thanks for the help<BR>Santana<BR>

  2. #2
    Join Date
    Dec 1969
    Los Angeles, CA

    Default Cant that way

    you have to map a drive to where you want to search on the web server and then search that folder, one at a time<BR><BR><BR>You MAY want to read the FAQs on FSO before you head off to start coding<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