Apr 9, 2022

cmd or powershell command output into a file

 

In CMD 

YOUR-COMMAND > C:\PATH\TO\FOLDER\OUTPUT.txt

In Powershell 


YOUR-COMMAND | Out-File -FilePath C:\PATH\TO\FOLDER\OUTPUT.txt

No comments:

Post a Comment

If you have any doubt or question, please contact us.