Share via


Rem

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

Provides a way to add comments to a script.

Syntax

rem

Examples

In this example script, rem is used to provide a comment about what the script does:

rem The commands in this script set up 3 drives.
rem The first drive is a primary partition and is
rem assigned the letter D. The second and third drives
rem are logical partitions, and are assigned letters
rem E and F.
create partition primary size=2048
assign d:
create partition extended
create partition logical size=2048
assign e:
create partition logical
assign f:

Additional references

Command-Line Syntax Key

DiskPart