1.

Solve : Wildcard query.?

Answer»

Okay, lets SAY I'm looking for files that start with ZZ, and in the middle, it can be anything, but then after that, I want it to end in 123. The extension would be anything that starts with the letter 'P'. Would it be this?

Code: [Select]Zz*123.p*That should be correct. If it allows that kind of use with Wild Cards. Quote from: BatchRocks on March 07, 2009, 08:32:54 PM

Okay, lets say I'm looking for files that start with Zz, and in the middle, it can be anything, but then after that, I want it to end in 123. The extension would be anything that starts with the letter 'P'. Would it be this?

Code: [Select]Zz*123.p*

Why don't you just try it out? Not meaning to be critical, but experiments are a good way of learning.
I can say it won't WORK that way on pure DOS, since the Asterisk will match to the end of the name or extension- for example, *a.* would be the same as *.*, *a.txt would be the same as *.txt, and file.t*t would be the same as file.t*.

I BELIEVE this "rectified" in CMD, though.



Discussion

No Comment Found