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

python - argument must be rect style object - Pygame -

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

c# - Better 64-bit byte array hash -