text stringlengths 0 4.23k |
|---|
Syntax |
exit [/b] [<exitcode>] |
Parameters |
Parameter |
Description |
/b |
Exits the current batch script instead of exiting Cmd.exe. If executed from outside a batch script, exits Cmd.exe. |
<exitcode> |
Specifies a numeric number. If /b is specified, the ERRORLEVEL environment variable is set to that number. If you are quitting the command interpreter, the process exit code is set to that number. |
/? |
Displays help at the command prompt. |
<exitcode> |
Examples |
To close the command interpreter, type: |
exit |
expand vdisk |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Expands a virtual hard disk (VHD) to a specified size. |
A VHD must be selected and detached for this operation to succeed. Use the select vdisk command to select a volume and shift the focus to it. |
Syntax |
expand vdisk maximum=<n> |
Parameters |
Parameter |
Description |
maximum=<n> |
Specifies the new size for the VHD in megabytes (MB). |
<n> |
Examples |
To expand the selected VHD to 20 GB, type: |
expand vdisk maximum=20000 |
expand |
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012 |
Expands one or more compressed files. You can also use this command to retrieve compressed files from distribution disks. |
The expand command can also run from the Windows Recovery Console, using different parameters. For more information, see Windows Recovery Environment (WinRE). |
Syntax |
expand [-r] <source> <destination> |
expand -r <source> [<destination>] |
expand -i <source> [<destination>] |
expand -d <source>.cab [-f:<files>] |
expand <source>.cab -f:<files> <destination> |
Parameters |
Parameter |
Description |
-r |
Renames expanded files. |
source |
Specifies the files to expand. Source can consist of a drive letter and colon, a directory name, a file name, or a combination of these. You can use wildcards (* or ?). |
destination |
Specifies where files are to be expanded.If source consists of multiple files and you don't specify -r, the destination must be a directory that already exists. Destination can consist of a drive letter and colon, a directory name, a file name, or a combination of these. Destination file \| path specification. |
-i |
Renames expanded files but ignores the directory structure. |
-d |
Displays a list of files in the source location. Doesn't expand or extract the files. |
-f:<files> |
Specifies the files in a cabinet (.cab) file that you want to expand. You can use wildcards (* or ?). |
/? |
Displays help at the command prompt. |
If source consists of multiple files and you don't specify -r, the destination must be a directory that already exists. Destination can consist of a drive letter and colon, a directory name, a file name, or a combination of these. Destination file \| path specification. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.