assocコマンドとftypeコマンド | ブーログ
----- CUT HERE -----
C:\>assoc .txt
.txt=textfile
C:\>ftype txtfile
txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1
C:\>assoc .rb=rubyfile
C:\>ftype rubyfile="C:\pathtoruby\ruby.exe" "%1" %*
----- CUT HERE -----
右クリックして関連付けを変えられないときは、上記を参考にして修正すれば良い。
----- CUT HERE -----
C:\>assoc .txt
.txt=textfile
C:\>ftype txtfile
txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1
C:\>assoc .rb=rubyfile
C:\>ftype rubyfile="C:\pathtoruby\ruby.exe" "%1" %*
----- CUT HERE -----
右クリックして関連付けを変えられないときは、上記を参考にして修正すれば良い。