如何使用 C# 应用程序检索 .P7M 文件的所有信息。\n示例 .p7m 文件:\n如果可能,请给我代码或示例示例链接
\n\nMIME-Version: 1.0\nContent-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg=sha1; boundary="----6975263937A7DDC0C0034052D76E8275"\n\nThis is an S/MIME signed message\n\n------6975263937A7DDC0C0034052D76E8275\nMIME-Version: 1.0\nSubject: MVCI - Restart Needed a\nX-Relevance-Evaluation-Period: 0:0:1\nX-Relevance-Child-Evaluation-Period: 0:0:1\nContent-Type: multipart/digest; boundary="AD27641"\n\n--AD27641\n\nSubject: MVCI - Restart Needed a\nX-Relevant-When: pending restart and (not exists file "C:\\Windows\\System32\\No_Reboot.txt")\nX-Fixlet-ID: 27641\nX-Fixlet-Category: Computer Support\nX-Fixlet-Source: BigFix\nX-Fixlet-Source-Severity: Moderate\nX-Fixlet-Source-ID: <Unspecified>\nX-Fixlet-Source-Release-Date: 9/12/2006\nX-Fixlet-Download-Size: 0\nContent-Type: multipart/related; boundary="F27641"\n\n--F27641\nContent-Type: text/html; charset=us-ascii\n\n<custom>\n--F27641\nContent-id: Action1\nContent-Type: application/x-Fixlet-Windows-Shell\n\n// only run this action on computers that are not locked\ncontinue if {not locked of action lock state}\n\nrestart\naction requires restart\n\n// only run this action on computers …Run Code Online (Sandbox Code Playgroud) 我尝试在javascrpt中删除多个分号(;)替换为单个分号(;).
代码:
var test ="test1;;test2;;;test3;;;;test4;;;;test5;;;;;test6;;;;;;test7;;;;;;;test8;;;;;;;;test9"
test.replace(";;",";")
Run Code Online (Sandbox Code Playgroud)
但是没有得到正确的输出.(必须使用替换)如果有任何解决方案
我需要输出像:
test1;test2;test3;test4;test5;test6;test7;test8;test9
Run Code Online (Sandbox Code Playgroud)