Using Windows PowerShell to run old command line tools (and their weirdest parameters)

Source: https://blogs.technet.microsoft.com/josebda/2012/03/03/using-windows-powershell-to-run-old-command-line-tools-and-their-weirdest-parameters/

Problem 1: Name conflicts

Solution 1A: Use the .EXE extension

Solution 1B: Use CMD /C

Solution 1C: Use a PowerShell equivalent

Problem 2: Special PowerShell characters

Solution 2A: Use CMD /C

Solution 2B: Use the PowerShell escape character

打赏
Liked it? Take a second to support admin on Patreon!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.