Tuesday, February 12, 2019

Saving command output to file on Windows 10

Do you need to save a command output to a text file? Here's how you can do this on Command Prompt or PowerShell.

On Windows 10, the ability to save the output of a PowerShell or Command Prompt command to a text file can come in handy in many scenarios. For example, when you're troubleshooting a problem, it's a convenient way to export and analyze the command output, or you can share the output with someone else who can help. You can print a command output to a text file to save system configurations for documentation purposes, and more.

Although you could just select the content, right-click the selection to copy the content to the clipboard, and then paste on a text file, this method requires additional steps, which you can avoid with a single command-line using the redirect output to file function.

In this Windows 10 guide, we'll walk you through the steps to save a command output to a text file whether you're using Command Prompt or PowerShell.

How to save command output to file using Command Prompt

To save a command output to a text file using Command Prompt, use these steps:



from Windows Central - News, Forums, Reviews, Help for Windows 10 and all things Microsoft. http://bit.ly/2tik9X2
via IFTTT

No comments:

Post a Comment