DOS Command to a Text File
- Just put “>“(without quote) after command then “path“(without quote) , where you want to save. Look the below picture for better understand.
- Help command display all help information of DOS. To save these information to “D:\” drive, you have to type >D:\help.txt after help command.
Other Examples:
1) Outputs help text of the command “mkdir” to the file “dir.txt” in “G” drive.mkdir /? > G:\dir.txt
2) Outputs the IP configurations to the file “ip.txt” in “C” drive.
ipconfig> C:\ip.txt
This is very simple trick to save the output of DOS in a text file. If you don’t add a path, it automatically save in “C” drive.
No comments:
Post a Comment