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.