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