FSO Problems

Results 1 to 2 of 2

Thread: FSO Problems

  1. #1
    Join Date
    Dec 1969

    Default FSO Problems

    Here is My Code.<BR><BR>----<BR> &#039;Create the FileSystemObject object<BR> Dim objFSO<BR> Set objFSO = Server.CreateObject("Scripting.FileSystemObject")< BR><BR> &#039;Obtain an folder object instance for a particular directory<BR> Dim objFolder<BR> dim strPath<BR> <BR> strPath = "imagesgallery\"<BR> Set objFolder = objFSO.GetFolder("C:Inetpubwwwroot21stpcimagesgall ery")<BR><BR> &#039;Use a For Each ... Next loop to display the files<BR> Dim objFile<BR> For Each objFile in objFolder.Files<BR> &#039;Print out the name<BR> Response.Write objFile.Path & "<BR>"<BR> Next<BR>-------<BR><BR>For some reason when I try and run this, it takes for ever and then I get a timeout error.

  2. #2
    Join Date
    Dec 1969

    Default RE: FSO Problems


Posting Permissions

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