Copy Text in Command Prompt screen
Edited by Adrian Penaflor, Melsan, Doug Collins, Dougie and 1 other
This article will teach you how to copy text in the Command Prompt or DOS 'black screen' so you can forget about 'Print Screen' which can only get an image file and not the raw text. This is very useful if you want to copy information or command line codes out of your Command Prompt screen. I will show you how to copy 'raw' text in your Command Prompt screen and then maybe paste it in a Notepad or any Word processing software. Please check the steps below:
Instructions
- 1Make sure your Command Prompt is on window mode (not full screen mode.)
- 2Click on the Command Prompt icon menu at the upper left side corner of the window.
- 3
- 4
- 5To copy the text, you can go back to the Command Prompt icon menu>Edit>Copy, or you can just simply press Enter key on your keyboard to copy it.
- 6
What is the command prompt?
Command prompt is mistakenly called as DOS prompt or even MS-DOS. This Windows Command is a program set by Windows to emulate many actions using command line from MS-DOS but the command prompt it is not actually an MS-DOS. The purpose of the command prompt is to open files or batch files for administrative and troubleshooting certain Windows based computer issues. Command prompt can be accessed through Start then all programs and Accessories then select the command. You can also access it by typing in the search option as cmd to get the command screen up. There a lot of commands but varies per operating system. Commands are case sensitive and must be entered correctly to the command line, misspelling the command which may result to failure or much worse. See the list of commands for a Windows 7 Operating system.
Windows 7 Commands
- 1
- 2For you to open files from a directory that are located in the current directory. This is only available for Windows 7 that has 64-bit version of the said Windows system.Append:
- 3For you to display the file type from a specific file, Only that are associated to a certain file.Assoc:
- 4At is used to set a schedule programs to run at a specific time and the date.At:
- 5This command is for you to change attributes of a file or the directory itself.Attrib:
- 6This command is to show the audit policiesAuditpol:
- 7For you to copy bootable files and transfer to the system partition or to create new BCD store.Bcdboot:
- 8For you to edit a Boot configuration data.Bcdedit:
- 9For you to manage, monitor downloading and uploading actions and to create too. This is available only to Windows 7 that is being phased out.Bdehdcfg:
- 10This command has been remove since Windows Vista, but available in Windows 7 and it has no value in Boot.ini. This command is to view contents, edit and make contents in Build.ini.Bootcfg:
- 11For you to configure the boot master code to be compatible with BOOTMGR (Windows 7 Boot Manager)Bootsect:
- 12For you to clear or halt such command in the command prompt. Such as if you rung continuous ping, simply press Ctrl then letter C to stop.Break:
- 13For you to display the list of access control of files. This has been remove or phased out by Microsoft and suggested to use icals command instead.Cacls:
- 14Is to run program (Script or batch) from another program. Running this command will not do anything upon running to a command prompt.Call:
- 15This is same as Chdir. This command does not do anything much in Windows 7.CD:
- 16For you to authorized certificate functions from various certificate authority.Certeq:
- 17For you to display certification authority and to dump or display.Certutil:
- 18For you to change logon, COM port mapping and terminal servers.Change:
- 19For you to change an active code (Number of page)Chcp:
- 20For you to disable or enable a server session.Chlogon:
- 21This is for DOS compatibility and for you to display or edit COM (Prot) MappingChgport:
- 22Same command as change userChgusr:
- 23This command lets you resolve and identify HDD's errors.Chkdsk:
- 24This will show the disk while Windows boot process.Chkntfs:
- 25This will let you see the list of selection and goes back to the selected program.Choice:
- 26This will let you view the encryptions file status on a partition that is on NTFSCipher:
- 27This is a clipboard command that redirects its output.Clip:
- 28This is to clear all commands that you have entered on screen.Cls:
- 29restarts new interpreter. To start from scratch.Cmd:
- 30This command lets you view the credentials that you can remove or even create.Cmdkey:
- 31This command reinstalls the connection manager profile.Cmstp:
- 32This command specifies to change the text in the command prompt Window. Just Type color and enter the corresponding number for the color:Color:
- 0 = Black
- 1 = Blue
- 2= Green
- 3 = Aqua
- 4 = Red
- 5 = Purple
- 6 = Yellow
- 7 = White
- 8 = Gray
- 9 = Light Blue
- A = Light Green
- B = Light Aqua
- C = Light Red
- D = Light Purple
- E = Light Yellow
- F = Bright White
- 33This action is not present to Windows 7 with 64 bit. This will open a new command interpreter.Command:
- 34This is to open 2 sets of files to compare.Comp:
- 35This is to view directories on a partition that has NTFS file system format.Compact:
- 36This command lets you format or convert from FAT or FAT32 to NTFS.Convert:
- 37Simply copies the file from one location to the other.Copy:
- 38This command lets you execute the scripts via MS-Script host.Cscript:
- 39Simply change the date of the computer to your preferred date.Date:
- 40This is for debugging. This command lets you test programsDebug:
- 41Lets you defrag a specific drive disk.Defrag:
- 42This command will let you delete files.Del:
- 43This command lets you compress files.Diants:
- 44This command lets you display directories.Dir:
- 45This command will let you compare contents.Diskcomp:
- 46This command will let you copy contents from one disk to the other.Diskcopy:
- 47This is for you to manage and remove/delete partitions of a drive.Diskpart:
- 48This will let you manage or check disk performance.Diskperf:
- 49This command is to edit RAID arraysDiskraid:
- 50To manage Windows imagesDism:
- 51To make a new computer account.Dispdiag:
- 52To configure command linesDoskey:
- 53To launch DPMI or the DOS Protected Mode InterfaceDosx:
- 54To view drivers that are installed in the computerDriverquery:
- 55This action is to show the messages o f batch files.Echo:
- 56This is to modify text.Edit:
- 57Modify or create text files (Command line).Edlin:
- 58It changes a batch file to end localization environment.Endlocal:
- 59Same as Del commandErase:
- 60Manages ESE data bases (Extensible Storage Engine)Esentutl:
- 61make a customize event.Eventcreate:
- 62Convert an executable to a binary file.Exe2Bin:
- 63Simply exits you from the command.Exit:
- 64Extract CAB files.Extrac32:
- 65This command does not exist to Windows 7 with 64-bit, this is to add program's to your HDD location.Fast Open:
- 66To compare 2 files and view what are their differences.FC:
- 67To search a specific text.Find:
- 68To search text patternsFindstr:
- 69To search string of text patterns.Finger:
- 70Manage filters, such as load and unload.Fltmc:
- 71A specific command for each file.For:
- 72Select 1 file (Or more) to run by a specified command.Forflies:
- 73Lets you set a task for some NTFS and FAT 32 file system. Such as extending, reparse and others.Fsutil:
- 74Transfer files from one computer to the other using FTP server.Ftp:
- 75This is to define a program(Default program) and run it to a specific type of file.Ftype:
- 76View the access control list of the network controllers.Getmac:
- 77This command is to direct a process to a labeled script.Go to:
- 78View policy settings within the groupGpresult:
- 79Update the group policyGpupdate:
- 80View an extended graphicsGraftbl:
- 81It loads an application that has the capability to print graphics. Again, not available to Windows 7 64-bitGraphics:
- 82Simply open view all starting commandsHelp:
- 83View the current host name.Hostname:
- 84Change or Edit access control list.Icacls:
- 85For functions (Conditional) to a batch file.If:
- 86to check network details. Such as IP address, Domain server, DNS and other.Ipconfig:
- 87This command is used for managing iSCSI.Iscsicli:
- 88For configuring keyboards languageKb16:
- 89This command is used to delete or purge Kerberos tickets. Also used to list those tickets.Klist:
- 90Simply for editing Kerberos server connections.Ksetup:
Tips Tricks & Warnings
- You cannot do this while your Command Prompt screen is in full screen mode. To exit out of the full screen mode, just press Alt+Enter. Pressing Alt+Enter will bring you to full screen mode or it can exit you to full screen mode.
- Drag and expand the Command Prompt window to get more areas to highlight.
- You can also select all the text in the screen by going to the Command Prompt menu>Edit>Select All.
Questions and Answers
Want to copy text on full screen command window?
Want to copy text on full screen command window as window mode is not possible
To switch to the window mode, you can press "Alt" and "Enter" if you are in Windows. However, if you are referring to the mode like MS-DOS, FreeDOS, or the Recovery Mode for Windows where multitasking is not possible, then there is no way to copy and paste text. The only thing you can do is to use up and down arrows to use previous and next commands that you have submitted. You will have to type the rest.
If you have problems with any of the steps in this article, please ask a question for more help, or post in the comments section below.
Comments
Article Info
Categories : Tech
Recent edits by: Dougie, Doug Collins, Melsan
Thanks to all authors for creating a page that has been read 7,462 times.