Wildcards in Windows

I put forth the challenge in my last post about how to match files that start, end, or simply have a period in them. It isn’t easy to do. Wildcards in paths seem simple at first. You have ‘?’ to match any single character and ‘*’ to match zero or more of any characters. Matching…

0

Wildcard challenge

Finding files with spaces from a command prompt might not be immediately obvious. Using quotes is the answer. List all files with a space: dir “* *” List all files that start with a space: dir ” *” List all files that end with a space: ??? #3 is a bit more challenging. Normalization has something…

0

Creator’s Update, .NET 4.7 and long paths

Most notable bit is CMD supports long paths now. You still need to enable the long path policy as it isn’t on by default. .NET 4.7 had some minor tweaks. It now allows using device syntax (\\?\) with FileIOPermissions as long as you are running in full trust. This should allow you to use \\?\…

0