Why the command “Get-Content c:text[file].txt” doesn’t work?

Rating: +0

Positive Negative

You should use -literalpath parameter because by default Get-Content cmdlet uses -path parameter and it uses regex and wildcards but -literalpath use the string c:text[file].txt exactly as it is typed