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

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

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


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

有大大有經驗嗎 ?
2018-08-21 19:10 發佈
文章關鍵字 軟體 bat

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.
內文搜尋
X
評分
評分
複製連結
Mobile01提醒您
您目前瀏覽的是行動版網頁
是否切換到電腦版網頁呢?