text
stringlengths
0
4.23k
%2, %3, ...
Gets the first parameter (%2), the second parameter (%3), and so on.
%~<n>
Gets all of the remaining parameters starting with the nth parameter, where n can be any number from 2 to 9.
%0
%1
%*
%2
%3
%2
%3
%~<n>
Examples
To display the current file types that have open command strings defined, type:
ftype
To display the current open command string for the txtfile file type, type:
ftype txtfile
This command produces output similar to the following:
txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1
txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1
To delete the open command string for a file type called example, type:
ftype example=
To associate the .pl file name extension with the PerlScript file type and enable the PerlScript file type to run PERL.EXE, type the following commands:
assoc .pl=PerlScript
ftype PerlScript=perl.exe %1 %*
To eliminate the need to type the .pl file name extension when invoking a Perl script, type:
set PATHEXT=.pl;%PATHEXT%
fveupdate
FveUpdate is an internal tool, used by the setup program when a computer is upgraded. It updates the metadata associated with BitLocker to the latest version. This tool cannot be run independently.
getmac
Applies to: Windows Server 2022, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012
Returns the media access control (MAC) address and list of network protocols associated with each address for all network cards in each computer, either locally or across a network. This command is particularly useful either when you want to enter the MAC address into a network analyzer, or when you need to know what p...
Syntax
getmac[.exe][/s <computer> [/u <domain\<user> [/p <password>]]][/fo {table | list | csv}][/nh][/v]
Parameters
Parameter
Description
/s <computer>
Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer.
/u <domain>\<user>
Runs the command with the account permissions of the user specified by user or domain\user. The default is the permissions of the current logged on user on the computer issuing the command.
/p <password>
Specifies the password of the user account that is specified in the /u parameter.
/fo {table | list | csv}
Specifies the format to use for the query output. Valid values are table, list, and csv. The default format for output is table.
/nh
Suppresses column header in output. Valid when the /fo parameter is set to table or csv.
/v
Specifies that the output display verbose information.
/?
Displays help at the command prompt.
<computer>
<domain>\<user>
<password>
Examples
The following examples show how you can use the getmac command:
getmac /fo table /nh /v
getmac /s srvmain
getmac /s srvmain /u maindom\hiropln
getmac /s srvmain /u maindom\hiropln /p p@ssW23
getmac /s srvmain /u maindom\hiropln /p p@ssW23 /fo list /v
getmac /s srvmain /u maindom\hiropln /p p@ssW23 /fo table /nh
gettype
Applies to: Windows Server (All supported versions)
The gettype command is deprecated and may not be supported in future releases of Windows.
gettype
gettype is included in Windows Server 2003. For more information, see gettype.
gettype
goto
Directs cmd.exe to a labeled line in a batch program. Within a batch program, this command directs command processing to a line that is identified by a label. When the label is found, processing continues starting with the commands that begin on the next line.