[Vista]Copy the results of a DOS command
Intro
Under Windows Vista and Windows Server 2003, the CLIP command allows you to copy the results of command in the DOS command prompt.
This can useful if you are asked to paste the results of the IPCONFIG command, (for example, in a forum, avoid retyping all the results).
Implementation
- In the command prompt (Start> All Programs> Accessories> Command Prompt), type CMD | CLIP(the symbol | is obtained by performing ALT +6).
- Enter the command you want to perform, for example IPCONFIG.
At this point the command is running.
*
- If you placed an command that requires that requires a certain lap of time to implement, then you must wait. The disadvantage is that nothing indicates that the execution of a command completed or not, you just wait until it is possible to retype the command prompt.
- Note that it is better to select the parameters of the comamnd carefully to prevent any confirmation message, as these messages are interpreted in the background. For any info about a command, type the command followed by /?
At the end of the command, type EXIT. The results will be immediately copied to the clipboard.
Paste them in the forum (go straight to the forum and do "Paste").
Shortcuts:
- IPCONFIG | CLIP: Copy network configurations directly on the PC to the clipboard.
- DIR | CLIP: copy directly the listing of the contents of the current folder to the clipboard.
- NET VIEW | CLIP: copy the list of users connected in the same working group to the clipboard.
- DRIVERQUERY | CLIP: copy the list of drivers installed on the PC to the clipboard.
- SC QUERY | CLIP: copy the list of services and their statements on the current PC to the clipboard.
How to Copy the results to a text file?
This tip is for XP and Vista.
Still in the command prompt, simply type the desired command followed by
> [File location] \ [filename]
For example:
IPCONFIG/ALL> C:\netowkr.txt
create a text file with the network name on the root C that contains the current network configuration
If the desired path contains spaces, then use the quotation marks:
DIR>"C: \ Documents and Settings \ me \ Desktop \ liste.txt
" creates a file list on the user's desktop that contains me the listing of the current folder on the console.