PowerShell – loop through files using wildcards in the filenames
If you need to work with multiple files (e.g. log files) and want to identify them by using wildcards, you can take the below approach: 1 Identify the folder to work in, and add it to a variable. You can use .\ to use the current folder, or put a full path (e.g. C:\temp) 2