-
May 10th, 2023, 11:32 AM
#1
Thread Starter
Lively Member
-
May 10th, 2023, 12:12 PM
#2
Re: Workaround for "?" wildcard search?
El Cheapo quick and easy workaround:
Pipe the Dir output to a text file.
Open that text file in Notepad and remove any unwanted information,
Paste the information you do want into Excel. Now you have lots of filter or find options.
If this is regularly scheduled task that you want to automate, there are other solutions.
-
May 10th, 2023, 02:24 PM
#3
Thread Starter
Lively Member
Re: Workaround for "?" wildcard search?
Thx for the reply, but this all has to be automated within my utility. I can't ask users to edit files by hand in mid process before the program can continue.
-
May 10th, 2023, 02:28 PM
#4
Re: Workaround for "?" wildcard search?
What is the utility? Is it a program? If so, what is it written in? It seems like this is a problem that could be solved relatively easily in some languages, but that this seems more like a batch process utility.
My usual boring signature: Nothing
 
-
May 10th, 2023, 02:36 PM
#5
Thread Starter
Lively Member
Re: Workaround for "?" wildcard search?
I thought I posted to the VB.Net forum. Sorry. My bad.
-
May 10th, 2023, 02:53 PM
#6
Re: Workaround for "?" wildcard search?
 Originally Posted by Mugsy323
I thought I posted to the VB.Net forum. Sorry. My bad. 
You did, but it probably got moved since the original post kind of glossed over any relevance to VB.
Not sure how much heavy lifting you want your code to do, but one simple way would be to ensure that the length of the "Search For" string is equal to the length of the resulting filename, discarding filenames that are longer.
-
May 10th, 2023, 04:13 PM
#7
Member
Re: Workaround for "?" wildcard search?
Can confirm it's the same problem on Windows 10. If you click into the search bar, you'll see the query it's using. It will be like this:
search-ms:displayname=Search%20Results%20in%20New%20folder&crumb=filename%3A~file????.txt%20OR%20System.Generic.String%3Afile????.txt&crumb=location:J%3A%5CMisc%5CNew%20folder
You can remove the bit in bold and then the query works fine.

It looks like wrapping the search term in quotes will do what you want. "File????.pes"
-
May 10th, 2023, 04:20 PM
#8
Thread Starter
Lively Member
Re: Workaround for "?" wildcard search?
Oooo. I need to try this (wrapping the search term in quotes in my code.)
Thx.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|