我想将哈希表结果打印到文件中,但是格式不同
$hashTMP = @{
'vivid.img' = '$ProgramFiles\Medcon\ApplicationServer\ISFiles\Samples\Inbound\OCR - DICOM\Vivid';
'Vivid.xml' = '$ProgramFiles\Medcon\ApplicationServer\ISFiles\Defaults\OCR';
'Zonare.xml' = '$ProgramFiles\Medcon\ApplicationServer\ISFiles\Defaults\OCR';
}
$hashTMP.GetEnumerator() | sort key
所需的输出格式如下:
vivid.img,$ProgramFiles\Medcon\ApplicationServer\ISFiles\Samples\Inbound\OCR - DICOM\Vivid; Vivid.xml,$ProgramFiles\Medcon\ApplicationServer\ISFiles\Defaults\OCR; Zonare.xml,$ProgramFiles\Medcon\ApplicationServer\ISFiles\Defaults\OCR;