text
stringlengths
0
4.23k
If you specify cleaning up the drive that contains the Windows installation, all of these options are available on the Disk Cleanup tab. If you specify any other drive, only the Recycle Bin and the Catalog files for content index options are available on the Disk Cleanup tab.
Examples
To run the Disk Cleanup app so that you can use its dialog box to specify options for use later, saving the settings to the set 1, type the following:
cleanmgr /sageset:1
To run Disk Cleanup and include the options that you specified with the cleanmgr /sageset:1 command, type:
cleanmgr /sagerun:1
To run cleanmgr /sageset:1 and cleanmgr /sagerun:1 together, type:
cleanmgr /sageset:1
cleanmgr /sagerun:1
cleanmgr /tuneup:1
clip
Redirects the command output from the command line to the Windows clipboard. You can use this command to copy data directly into any application that can receive text from the Clipboard. You can also paste this text output into other programs.
Syntax
<command> | clip
clip < <filename>
Parameters
Parameter
Description
<command>
Specifies a command whose output you want to send to the Windows clipboard.
<filename>
Specifies a file whose contents you want to send to the Windows clipboard.
/?
Displays help at the command prompt.
<command>
<filename>
Examples
To copy the current directory listing to the Windows clipboard, type:
dir | clip
To copy the output of a program called generic.awk to the Windows clipboard, type:
awk -f generic.awk input.txt | clip
To copy the contents of a file called readme.txt to the Windows clipboard, type:
clip < readme.txt
cls
Clears the Command Prompt window.
Syntax
cls
Parameters
Parameter
Description
/?
Displays help at the command prompt.
Examples
To clear all information that appears in the Command Prompt window and return to a blank window, type:
cls
cmd
Starts a new instance of the command interpreter, Cmd.exe. If used without parameters, cmd displays the version and copyright information of the operating system.
Syntax
cmd [/c|/k] [/s] [/q] [/d] [/a|/u] [/t:{<b><f> | <f>}] [/e:{on | off}] [/f:{on | off}] [/v:{on | off}] [<string>]
Parameters
Parameter
Description
/c
Carries out the command specified by string and then stops.
/k
Carries out the command specified by string and continues.
/s
Modifies the treatment of string after /c or /k.
/q
Turns echo off.