請問如何用 bat 去改變預設開啟軟體

有需要寫*.bat 把預設開啟的應用程式換掉
舉例

1.txt 預設是用 notepad 開 要改成用wordpad 開


寫了以下bat 但沒作用
assoc .txt=txtfile
ftype txtfile=%ProgramFiles%\Windows NT\Accessories\wordpad.exe %1 %*

有大大有經驗嗎 ?
文章關鍵字

jean102465 wrote:
ftype txtfile=%ProgramFiles%\Windows NT\Accessories\wordpad.exe %1 %*...(恕刪)

改成
ftype txtfile=C:\ProgramFiles\Windows NT\Accessories\wordpad.exe %1 %*
就可以了
You lead, follow or get out of the way.
文章分享
評分
評分
複製連結

今日熱門文章 網友點擊推薦!