Assoc Displays or modifies file name extension associations.
ASSOC [. Ext[=[filetype]]
. ext Specifies the file name extension associated with the file type
FILETYPE Specifies the file type associated with the file name extension
Type ASSOC without parameters to display the current file association. If you use only file extensions
Called ASSOC, the current file association for that file name extension is displayed. If not for
The file type specifies any parameters, and the command removes the association of the file name extension.
ATTRIB Display or change file properties.
ATTRIB [+r |-r] [+a |-A] [+s |-S] [+h |-h] [+i |-i]
[Drive:] [Path] [FileName] [/S [/d] [/l]]
+ Set properties.
-Clears the attribute.
R read-only file properties.
A Archive file property.
S System file properties.
H hidden file properties.
I have no content index file properties.
[Drive:] [Path] [FileName]
Specifies the file to be processed by the attrib.
/S handles matching files in the current folder and all its subfolders.
/d also handles folders.
/L handles the properties of symbolic links and symbolic link destinations.
Break Sets or clears the extended CTRL + C check.
This command is reserved for compatibility with DOS systems, in Windows
does not work.
If the command extension is enabled and the operating platform is Windows,
The break command enters a hard code breakpoint when debugged by the debugger.
BCDEDIT Set the properties in the startup database to control the boot load.
The Bcdedit.exe command-line tool modifies the boot configuration data store.
The startup configuration data store contains the startup configuration parameters and controls how the operating system starts. These parameters were previously located in the
Boot. ini file (in the BIOS-based operating system) or in a stable RAM entry (on an extensible
In the operating system of the firmware Interface). You can use Bcdedit.exe to add, remove,
Edit and add-ons.
For more information about commands and options, type bcdedit.exe/? <command>.
For example, to display more information about the/createstore command, type:
Bcdedit.exe/? /createstore
For a list of the alphabetically listed topics in this Help file, run the bcdedit/? TOPICS ".
Commands for storage execution
================================
/createstore a new empty startup configuration data store.
/export Export the contents of system storage to a file. You can use this file to restore the system later
The state of the store.
/import uses the backup file created by the/export command to restore the state of the system store.
/sysstore setting up the system storage device (only affects the EFI system and is no longer valid after a reboot).
And is only used when the system storage device is not deterministic).
Commands to execute on items in the store
===========================================
/copy the items in the replication store.
/create creates a new item in the store.
/delete deletes items in the store.
/mirror creates a mirror of the items in the store.
Run bcdedit/?id to get information about the identifiers used by these commands.
Commands to execute on item options
======================================
/deletevalue Delete Item options in the store.
/set sets the item option value in the store.
Run bcdedit/? TYPES can obtain a list of the data types used by these commands.
Run bcdedit/? FORMATS can get a list of valid data formats.
command to control output
============================
/enum lists the items in the store.
/V command-line option to display the full item identifier instead of using the name of a well-known identifier.
Use command/V alone to fully display the item identifier for the activity type.
Running "bcdedit" alone is equivalent to running "Bcdedit/enum ACTIVE".
Commands to control the startup manager
======================================
/bootsequence set a one-time boot sequence for the boot manager.
/default Sets the default entry that the Startup manager will use.
/displayorder sets the order in which the Boot Manager displays multiple boot menus.
/timeout set the timeout value for the startup manager.
/toolsdisplayorder sets the order in which the Boot Manager displays the Tools menu.
Control command to start Application Emergency Management Service
==========================================================================
/bootems enable or disable the Emergency Management Service to start the application.
/EMS enables or disables emergency management services for operating system items.
/emssettings set global Emergency Management Service parameters.
Commands for controlling debugging
==============================
/bootdebug enables or disables startup debugging of the startup application.
/dbgsettings set Global debugger parameters.
/DEBUG enables or disables kernel debugging for operating system items.
/hypervisorsettings sets the parameters for the hypervisor.
CACLS Displays or modifies the Access Control List (ACL) of the file.
Note: Use of the CACLS is not recommended, please use ICACLS.
CACLS filename [/T] [/M] [l] [/S[:SDDL]] [/e][/c] [/g user:perm]
[/R user [...]] [/P User:perm [...]] [/d User [...]]
FileName Displays the ACL.
/T Change the current directory and all of its subdirectories
Specifies the ACL for the file.
/L handle symbolic link itself against target
/M Changes the ACL of the volume mounted to the directory
/S The SDDL string that displays the DACL.
/S:SDDL replaces the ACL with the ACL specified in the SDDL string.
(/E,/g,/r,/p or/d are not valid).
/e Edit the ACL without replacing it.
/C Continue when an Access denied error occurs.
/g User:perm gives the specified user access rights.
Perm can be: R read
W Write
C Change (write)
F Full Control
/r user revokes the access rights of the specified user (only valid when used with/E).
/P User:perm replaces the access rights for the specified user.
Perm can be: N None
R Read
W Write
C Change (write)
F Full Control
/d user denies access to the specified user.
You can use wildcard characters to specify multiple files in a command.
You can also specify multiple users in the command.
Abbreviation:
CI-Container inheritance.
The ACE is inherited by the directory.
OI-Object inheritance.
Aces are inherited by files.
IO-Inherit only.
The ACE does not apply to the current file/directory.
ID-Inherited.
Aces inherit from the ACL of the parent directory.
call calls this one from another batch program.
Call [Drive:][path]filename[batch-parameters]
batch-parameters Specifies the command line information required by the batch program.
If the command extension is enabled, call will change as follows:
The call command now accepts the volume label as the target of call. The syntax is:
Call:label arguments
A new batch file context is created by the specified parameters, and the control is specified in the volume label
After passing to the statement. You must "exit" two times by reaching the last two times of the batch script file.
The first time you read the end of the file, the control returns to the back of the call statement. Second time
Will exit the batch script. Type goto/?, see the description of the goto:eof extension,
This description allows you to return from a batch script.
In addition, the batch script text parameter reference (% 0,% 1, and so on) has changed as follows:
%* in the batch script indicates all parameters (such as%1%2%3%4 ...)
The substitution of the batch parameter (%n) has been enhanced. You can use the following syntax:
%~1-Delete quotation marks ("), extension%1
%~F1-Extend%1 to a fully qualified pathname
%~D1-Extend%1 to only one drive letter
%~P1-Extend%1 to only one path
%~N1-Extend%1 to only one file name
%~X1-Extend%1 to only one file name extension
%~S1-The extended path contains only short names
%~A1-Extend%1 to file properties
%~T1-date/time to extend%1 to file
%~Z1-Extend%1 to file size
%~ $PATH: 1-finds the directory that is listed in the PATH environment variable and adds%1
Expands to the first fully qualified name found. If
The environment variable name is not defined, or the file is not found.
This modifier expands to an empty string
You can combine modifiers to get multiple results:
%~DP1-Extend%1 to drive letter and path only
%~NX1-Extension%1 to file name and extension only
%~dp$path:1-Look for% 1 in the directory listed in the PATH environment variable
and expands to the drive letter and path of the first file found.
%~FTZA1-Extended%1 to an output line similar to DIR.
In the example above,%1 and PATH can be replaced by other valid values.
The%~ syntax is terminated by a valid parameter number. %~ modifier cannot be followed%*
Use
The CD displays the name of the current directory or changes it.
CHDIR [/d] [Drive:][path]
CHDIR [...]
CD [/d] [Drive:][path]
CD [..]
.. Specifies that you want to change to a parent directory.
Type CD drive: Displays the current directory in the specified drives.
Only type CD without parameters, the current drive and directory are displayed.
Using the/d switch, in addition to changing the current directory of the drive,
You can also change the current drive.
If the command extension is enabled, ChDir will change as follows:
The current directory string is converted to use the case on the disk name. So
If this is the case on the disk, Cdc:\temp will set the current directory to
C:\Temp.
The CHDIR command does not use whitespace as a delimiter, so it is possible to change the directory name to a
A subdirectory name with spaces but without quotation marks. For example:
CD \winnt\profiles\username\programs\start Menu