Wildcard characters in ASP

Results 1 to 2 of 2

Thread: Wildcard characters in ASP

  1. #1
    Join Date
    Dec 1969

    Default Wildcard characters in ASP

    I would like to know how to use wildcard characters in my asp code. For instance, I have a line of code to not include an .asp file in my directory listing.<BR>if objFileItem.Name &#060;> "DocControlDirectory.asp" then<BR>How can I change it to include all .asp files? "*.asp" does not work.

  2. #2
    Join Date
    Dec 1969

    Default RE: Wildcard characters in ASP

    You can look at the right four characters of the objFileItem.Name string.<BR><BR>if Right(objFileItem.Name,4) &#060;> ".asp" then<BR>&#039Not an asp file<BR>end if<BR><BR>Good luck, and happy programming!

Posting Permissions

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