将 .docx 与 swriter.exe LibreOffice 关联(使用 PowerShell)
我想将 .docx 与 OpenOffice 关联 $extension = ".docx" $executable = "$MyPrograms\LibreOffice\program\swriter.exe" $fileType = "docxfile" if (Test-Path $executable) { $elevated = @" cmd /c "assoc $extension=$fileType" cmd /c 'ftype $fileType="$executable" "%1" "%*"' ...