Sunday 23 June 2019

Batch: Get information about a command


There are two ways to get help about a batch command.
a.   Using help command
b.   Using the parameter /?

Using help command
‘help’ command prints help information about windows commands.

Syntax
help commandName

Example
Command ‘help vol’ displays the help information about vol command.

C:\>help vol
Displays the disk volume label and serial number, if they exist.

VOL [drive:]

Using the parameter /?
By passing the parameter /? to the command, you can get the help information about a command.

Syntax
commandName /?

Example

Command vol /? displays the help information about vol command.

C:\>vol /?
Displays the disk volume label and serial number, if they exist.

VOL [drive:]




Previous                                                 Next                                                 Home

No comments:

Post a Comment