Run CMD Command through PowerShell -


i trying run command in cmd, run in through powershell.

invoke-item opens cmd, don't how pass in program.exe argument > file.txt

to run cmd.exe powershell, don't need use invoke-item e.g.:

cmd /c c:\windows\system32\ipconfig > file.txt 

however, why not run?

ipconfig > file.txt 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -