*= stands for zero or more characters
*
? = any single character
?
In my testing, it appears that '?' does not work in place of '.'
Example:
A folder contains many files, one is called 'example.txt'
If I use Get-ChildItem -Name ???????????
Get-ChildItem -Name ???????????
It does not find the file.
If I use Get-ChildItem -Name ???????.???
Get-ChildItem -Name ???????.???
It will find the file.
Last updated 1 year ago