Command Prompt

epihammer

New Member
I was wondering how I can save the results I get when I do an ipconfig or any other command within the command prompt?

Thanks,
The Hammer
 

Lorand

<b>VIP Member</b>
Select with your mouse the area you're interested in, hit <Enter> then paste the clipboard content in Notepad.
Or redirect the DOS command's output to a file (type " > filename.txt" at the end of the command).
 

epihammer

New Member
Thank you, I've been trying to figure this out on my own for a while. This is alot easier than hand writing everything.

Thanks,
The Hammer
 

Morb

New Member
yea

Lorand's advice is very good. But I am not sure if you know this one ;o).
Take it as BONUS (I have been learning all my life, but I still "stupid" ;-)
Here are some usefull system relative paths when redirecting to file.

%ROOT% - system root eg. C:\Windows\
%SystemDrive% - for ex. C:\
%AllUsersProfile% - C:\Documents and Settings\All Users
%UserProfile% - C:\Documents and Settings\[CURRENT_USER]\
and much more....

This one is useful when you want redirect output to fine in MyDocs or Destop

Like this for ex.:

ipconfig -all > "%UserProfile%\Desktop\data.txt"
or
ipconfig -all > "%UserProfile%\MyDocuments\data.txt"

I am not sure, but there is direct relative path to "My Documents" too(AFAIK).
 
Top