Windows 的文件类型关联
Windows 的文件类型关联
如无法打开RUBY文件时:
> assoc .rb
File association not found for extension .rb
如果没有关联,则给它一个相关的文件类型:
> assoc .rb=rbFile
接着测试文件类型是否存在:
> ftype rbFile
File type 'rbFile' not found or no open command associated with it.
如果不存在,则手动建立:
> ftype rbFile="E:"Program Files"Windows NT"Accessories"wordpad.exe" "%1" %*
wordpad.exe(写字板)的路径自己定的.
最后,把 .rb加入环境变量PATHEXT中。如:
PATHEXT=.COM; .EXE; .BAT; .WSH; .rb
如无法打开RUBY文件时:
> assoc .rb
File association not found for extension .rb
如果没有关联,则给它一个相关的文件类型:
> assoc .rb=rbFile
接着测试文件类型是否存在:
> ftype rbFile
File type 'rbFile' not found or no open command associated with it.
如果不存在,则手动建立:
> ftype rbFile="E:"Program Files"Windows NT"Accessories"wordpad.exe" "%1" %*
wordpad.exe(写字板)的路径自己定的.
最后,把 .rb加入环境变量PATHEXT中。如:
PATHEXT=.COM; .EXE; .BAT; .WSH; .rb