Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Running CMD command in PS

$
0
0
In PS2, I always use cmd.exe /C to run DOS commands.

However, I ran into this scenario:



The first try, using cmd.exe /C, failed with the above error.

The second try, running the command directly, was successful.

Anyone can explain why?


Thanks.

Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>