0
我一直在試圖製作bat腳本或PowerShell腳本,將.tif和.tiff文件的關聯文件更改爲Modi中的MSP程序。PowerShell腳本更改tiff和tiff文件的關聯
我目前糟糕的代碼看起來是這樣的,它不會與微軟MSP程序正確打開文件
assoc .tif=TIFImage.Document
ftype TIFImage.Document="C:\Program Files (x86)\Common Files\microsoft shared\MODI\12.0\MSPVIEW.exe" "%1"
assoc .tiff=TIFImage.Document
ftype TIFImage.Document="C:\Program Files (x86)\Common Files\microsoft shared\MODI\12.0\MSPVIEW.exe" "%1"
是否有與此代碼等價的powershell? – user1378803
你是什麼意思「等效的PowerShell」? *是您在PowerShell中運行的代碼。 –
我的意思是隻使用ps ...上面的代碼調用cmd ...有沒有辦法在ps中做到這一點? – user1378803