text
stringlengths
0
4.23k
Portuguese
861
Icelandic
863
Canadian-French
865
Nordic
866
Russian
869
Modern Greek
936
Chinese
Remarks
Only the original equipment manufacturer (OEM) code page that is installed with Windows appears correctly in a Command Prompt window that uses Raster fonts. Other code pages appear correctly in full-screen mode or in Command Prompt windows that use TrueType fonts.
You don't need to prepare code pages (as in MS-DOS).
Programs that you start after you assign a new code page use the new code page. However, programs (except Cmd.exe) that you started before assigning the new code page will continue to use the original code page.
Examples
To view the active code page setting, type:
chcp
A message similar to the following appears: Active code page: 437
Active code page: 437
To change the active code page to 850 (Multilingual), type:
chcp 850
If the specified code page is invalid, the following error message appears: Invalid code page
Invalid code page
chdir
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Displays the name of the current directory or changes the current directory. If used with only a drive letter (for example, chdir C:), chdir displays the names of the current directory in the specified drive. If used without parameters, chdir displays the current drive and directory.
chdir C:
Note
This command has been replaced by the cd command. For more information, including the syntax and parameter details, see cd command.
chglogon
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Enables or disables logons from client sessions on an Remote Desktop Session Host server, or displays current logon status.
Note
This command has been replaced by the change log command. For more information, including the syntax and parameter details, see change logon command.
chgport
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Lists or changes the COM port mappings to be compatible with MS-DOS applications.
Note
This command has been replaced by the change port command. For more information, including the syntax and parameter details, see change port command.
chgusr
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Changes the install mode for the Remote Desktop Session Host server.
Note
This command has been replaced by the change user command. For more information, including the syntax and parameter details, see change user command.
chkdsk
Checks the file system and file system metadata of a volume for logical and physical errors. If used without parameters, chkdsk displays only the status of the volume and does not fix any errors. If used with the /f, /r, /x, or /b parameters, it fixes errors on the volume.
Important
Membership in the local Administrators group, or equivalent, is the minimum required to run chkdsk. To open a command prompt window as an administrator, right-click Command prompt in the Start menu, and then click Run as administrator.
Important
Interrupting chkdsk is not recommended. However, canceling or interrupting chkdsk should not leave the volume any more corrupt than it was before chkdsk was run. Running chkdsk again checks and should repair any remaining corruption on the volume.
Note
Chkdsk can be used only for local disks. The command cannot be used with a local drive letter that has been redirected over the network.
Syntax
chkdsk [<volume>[[<path>]<filename>]] [/f] [/v] [/r] [/x] [/i] [/c] [/l[:<size>]] [/b]
Parameters
Parameter
Description
<volume>
Specifies the drive letter (followed by a colon), mount point, or volume name.
[ [<path>]<filename>
Use with file allocation table (FAT) and FAT32 only. Specifies the location and name of a file or set of files that you want chkdsk to check for fragmentation. You can use the ? and * wildcard characters to specify multiple files.
/f
Fixes errors on the disk. The disk must be locked. If chkdsk cannot lock the drive, a message appears that asks you if you want to check the drive the next time you restart the computer.
/v
Displays the name of each file in every directory as the disk is checked.