Format-Hex
Displays the contents of files or byte streams in hex format and optionally ASCII.
Descrizione
The Format-Hex command displays the contents of the specified files in hex format. This cmdlet will also accept pipeline input in the form of a byte stream. The output can be controlled via various parameters to indicate the number of columns that should be displayed or alternatively you can specify the width of the output. The header, address and ASCII portions of the display can also be turned off individually. The offset and count can also be specified via parameters to control where in the input to start displaying and how much to display.
Parametri
| Nome |
Descrizione e modalità d'uso |
| -LiteralPath |
-LiteralPath <String[]>
|
Specifies a path to the item. The value of -LiteralPath is used exactly as it is typed. No characters are interpreted as wildcards. If the path includes escape characters, enclose it in single quotation marks. Single quotation marks tell Windows PowerShell not to interpret any characters as escape sequences.
|
| -Path |
-Path <String[]>
|
Specifies the path to the file to process. Wildcard syntax is allowed.
|
| -InputObject |
-InputObject <PSObject>
|
Accepts an object as input to the cmdlet. Enter a variable that contains the objects or type a command or expression that gets the objects.
|
| -Columns |
-Columns <Int32>
|
|
| -Count |
-Count <Int32>
|
Specifies the number of bytes to display.
|
| -NoAddress |
-NoAddress
|
Specifies to not display address information.
|
| -NoAscii |
-NoAscii
|
Specifies to not display ASCII representation of bytes.
|
| -NoHeader |
-NoHeader
|
Specifies to not display the header lines.
|
| -Offset |
-Offset <Int64>
|
Specifies the number of bytes to offset into file.
|
| -StringEncoding |
-StringEncoding <EncodingParameter>
|
The encoding to use for string InputObjects. Valid values are: ASCII, UTF7, UTF8, UTF32, Unicode, BigEndianUnicode and Default.
|
| -Width |
-Width <Int32>
|
Specifies desired width of output text.
|