Unable to locate commands restricted to PowerShell...
Unable to locate commands restricted to PowerShell...
My instructor explained that everything from CMD functions in PowerShell since the commands in CMD have aliases that match. When you run a CMD command, it essentially triggers the corresponding PowerShell function that does the same thing but uses a PowerShell version. For instance, ipconfig works by calling get-network, which is an alias for the same cmdlet.
Create two files on your desktop, a.txt and b.txt, with content "a" and "b" respectively. In a.txt set "a" to "type copy *.txt out.txt" and in b.txt set "b" to "copy *.txt out.txt". Save the changes. Then run CMD to copy all .txt files into out.txt, resulting in a linebreak. Using PowerShell would only display "b" without the file name.