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++ - rosrun via ssh doesnt start a node properly -

android - questions about switching from C2DM to GCM -

How to resolve Delphi error: Incompatible types: 'PWideChar' and 'Pointer' -