powershell 获取文件的十六进制转储

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了powershell 获取文件的十六进制转储相关的知识,希望对你有一定的参考价值。

Get-Content "C:\ServiceNow\MID-Server\agent\export\iPark\raw\parking_raw.txt" -Encoding Byte -ReadCount 16 | ForEach-Object {
  $output = ""
  foreach ( $byte in $_ ) {
#BEGIN CALLOUT A
    $output += "{0:X2} " -f $byte
#END CALLOUT A
  }
  $output
}

以上是关于powershell 获取文件的十六进制转储的主要内容,如果未能解决你的问题,请参考以下文章