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:
- 1Make sure your Command Prompt is on window mode (not full screen mode.)Advertisement
- 2Click on the Command Prompt icon menu at the upper left side corner of the window.Advertisement
- 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.
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
- 2Append:For 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.Advertisement
- 3Assoc:For you to display the file type from a specific file, Only that are associated to a certain file.
- 4At:At is used to set a schedule programs to run at a specific time and the date.
- 5Attrib:This command is for you to change attributes of a file or the directory itself.
- 6Auditpol:This command is to show the audit policies
- 7Bcdboot:For you to copy bootable files and transfer to the system partition or to create new BCD store.
- 8Bcdedit:For you to edit a Boot configuration data.
- 9Bdehdcfg:For you to manage, monitor downloading and uploading actions and to create too. This is available only to Windows 7 that is being phased out.
- 10Bootcfg:This 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.
- 11Bootsect:For you to configure the boot master code to be compatible with BOOTMGR (Windows 7 Boot Manager)
- 12Break:For 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.
- 13Cacls:For 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.
- 14Call:Is to run program (Script or batch) from another program. Running this command will not do anything upon running to a command prompt.
- 15CD:This is same as Chdir. This command does not do anything much in Windows 7.
- 16Certeq:For you to authorized certificate functions from various certificate authority.
- 17Certutil:For you to display certification authority and to dump or display.
- 18Change:For you to change logon, COM port mapping and terminal servers.
- 19Chcp:For you to change an active code (Number of page)
- 20Chlogon:For you to disable or enable a server session.
- 21Chgport:This is for DOS compatibility and for you to display or edit COM (Prot) Mapping
- 22Chgusr:Same command as change user
- 23Chkdsk:This command lets you resolve and identify HDD's errors.
- 24Chkntfs:This will show the disk while Windows boot process.
- 25Choice:This will let you see the list of selection and goes back to the selected program.
- 26Cipher:This will let you view the encryptions file status on a partition that is on NTFS
- 27Clip:This is a clipboard command that redirects its output.
- 28Cls:This is to clear all commands that you have entered on screen.
- 29Cmd:restarts new interpreter. To start from scratch.
- 30Cmdkey:This command lets you view the credentials that you can remove or even create.
- 31Cmstp:This command reinstalls the connection manager profile.
- 32Color:This command specifies to change the text in the command prompt Window. Just Type color and enter the corresponding number for the 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
- 33Command:This action is not present to Windows 7 with 64 bit. This will open a new command interpreter.
- 34Comp:This is to open 2 sets of files to compare.
- 35Compact:This is to view directories on a partition that has NTFS file system format.
- 36Convert:This command lets you format or convert from FAT or FAT32 to NTFS.
- 37Copy:Simply copies the file from one location to the other.
- 38Cscript:This command lets you execute the scripts via MS-Script host.
- 39Date:Simply change the date of the computer to your preferred date.
- 40Debug:This is for debugging. This command lets you test programs
- 41Defrag:Lets you defrag a specific drive disk.
- 42Del:This command will let you delete files.
- 43Diants:This command lets you compress files.
- 44Dir:This command lets you display directories.
- 45Diskcomp:This command will let you compare contents.
- 46Diskcopy:This command will let you copy contents from one disk to the other.
- 47Diskpart:This is for you to manage and remove/delete partitions of a drive.
- 48Diskperf:This will let you manage or check disk performance.
- 49Diskraid:This command is to edit RAID arrays
- 50Dism:To manage Windows images
- 51Dispdiag:To make a new computer account.
- 52Doskey:To configure command lines
- 53Dosx:To launch DPMI or the DOS Protected Mode Interface
- 54Driverquery:To view drivers that are installed in the computer
- 55Echo:This action is to show the messages o f batch files.
- 56Edit:This is to modify text.
- 57Edlin:Modify or create text files (Command line).
- 58Endlocal:It changes a batch file to end localization environment.
- 59Erase:Same as Del command
- 60Esentutl:Manages ESE data bases (Extensible Storage Engine)
- 61Eventcreate:make a customize event.
- 62Exe2Bin:Convert an executable to a binary file.
- 63Exit:Simply exits you from the command.
- 64Extrac32:Extract CAB files.
- 65Fast Open:This command does not exist to Windows 7 with 64-bit, this is to add program's to your HDD location.
- 66FC:To compare 2 files and view what are their differences.
- 67Find:To search a specific text.
- 68Findstr:To search text patterns
- 69Finger:To search string of text patterns.
- 70Fltmc:Manage filters, such as load and unload.
- 71For:A specific command for each file.
- 72Forflies:Select 1 file (Or more) to run by a specified command.
- 73Fsutil:Lets you set a task for some NTFS and FAT 32 file system. Such as extending, reparse and others.
- 74Ftp:Transfer files from one computer to the other using FTP server.
- 75Ftype:This is to define a program(Default program) and run it to a specific type of file.
- 76Getmac:View the access control list of the network controllers.
- 77Go to:This command is to direct a process to a labeled script.
- 78Gpresult:View policy settings within the group
- 79Gpupdate:Update the group policy
- 80Graftbl:View an extended graphics
- 81Graphics:It loads an application that has the capability to print graphics. Again, not available to Windows 7 64-bit
- 82Help:Simply open view all starting commands
- 83Hostname:View the current host name.
- 84Icacls:Change or Edit access control list.
- 85If:For functions (Conditional) to a batch file.
- 86Ipconfig:to check network details. Such as IP address, Domain server, DNS and other.
- 87Iscsicli:This command is used for managing iSCSI.
- 88Kb16:For configuring keyboards language
- 89Klist:This command is used to delete or purge Kerberos tickets. Also used to list those tickets.
- 90Ksetup:Simply for editing Kerberos server connections.
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 these steps, ask a question for more help, or post in the comments section below.
Categories : Tech
Recent edits by: Dougie, Doug Collins, Melsan
Thanks to all authors for creating a page that has been read 2,333 times.