Directory & File usage

Results 1 to 2 of 2

Thread: Directory & File usage

  1. #1
    Join Date
    Dec 1969

    Default Directory & File usage

    hi , two questions :<BR><BR>How can i know how much files there are in a specific directory?<BR><BR>How can i know the path to the directory where the asp file is located?<BR><BR>Thx!

  2. #2
    Join Date
    Dec 1969

    Default RE: Directory & File usage

    FSO&#039;s file collection has a count property<BR><BR>set objFolder = objFSO.getFolder(Server.MapPath("/"))<BR>Response.Write objFolder.files.count<BR><BR>as for the second question, use Request.serverVariables("path_info") in conjunction with Server.MapPath and some string parsing.<BR><BR>j<BR>http://www.readthe****

Posting Permissions

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