Print Page | Close Window

ASP Wildcard

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=6539
Printed Date: 31 March 2026 at 4:31pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: ASP Wildcard
Posted By: Semikolon
Subject: ASP Wildcard
Date Posted: 18 October 2003 at 3:06pm

yo ppl!!

what is the wildcard in asp scripts? if there is any..




Replies:
Posted By: michael
Date Posted: 18 October 2003 at 3:15pm
A wildcard for what?

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: Semikolon
Date Posted: 18 October 2003 at 3:31pm

like i windows you have * as a wildcard.. if you search for *.* you get all files in the directory you search..

im using the directorylisting script from persits aspupload and i want the script to only allow users to get the files from one fixed directory and the subfolders.. of course i could write an if for every subfolder but thats to much work.. i want something so i can just write

<% if Directory = "C:\mydir\[Wildcard]" then %>

directorylisting script

<% else %>

screw you

<% end if %>

if thats possible and you know what i mean..



Posted By: Gullanian
Date Posted: 18 October 2003 at 4:16pm
As far as I know there arent any wildcards for that.  You would need to create a function to pull the directory name and compare it.


Posted By: Semikolon
Date Posted: 18 October 2003 at 4:19pm
how do i do that?


Posted By: pmormr
Date Posted: 18 October 2003 at 8:29pm

did you try using the * character? it should work



-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: Gullanian
Date Posted: 19 October 2003 at 10:45am

No im sure it wont because its just a string.



Posted By: Semikolon
Date Posted: 19 October 2003 at 11:03am
i tried with the * but then i had to write * at the end of the path..



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net