Save in *.txt Command Prompt Instructions

If we want the result of our instruction in the command prompt can be saved in .txt (text), at the last word in every instruction we should add “>” and followed by the name of the file. For example :

IPCONFIG /all > E:\hasil_IPCONFIG.txt

So that, the result won’t be appeared in the command prompt, but saved in the drive E: named “hasil_IPCONFIG.txt”. If the folder or the file contain spaces, we must add quotation marks like “”. For example :

IPCONFIG /all > "E:\hasil IPCONFIG.txt"

For cleaning the screen, use the  CLS instruction. After that, to close or exit command prompt, click X button at the right top of the window, or type EXIT >> ENTER.

☻ Leave Comment Here ↓

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s