file type?

Results 1 to 2 of 2

Thread: file type?

  1. #1
    Join Date
    Dec 1969

    Default file type?

    I am using FSO, reading files from a folder. After reading the file, how could I determine what file type it is? I am trying to see if the file has a .LOG extension and not display it on my screen. Thanks<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: file type?

    When you loop to output the file names<BR>just check if it is a .LOG extension<BR><BR>For Each objFileItem in objFolder<BR>If Ucase(Right(objFileItem,3)) &#060;&#062; LOG Then<BR>Response.Write objFileItem.Name & "&#060;hr&#062;"<BR>End if<BR>Next<BR><BR>You could also search the string until you find the "." and take the extension and then compare using instr(...) or any string manipulation

Posting Permissions

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