Board logo

标题: [求助]批处理可以修复文件关联吗??? [打印本页]

作者: ixxxxyou     时间: 2008-7-29 16:36    标题: [求助]批处理可以修复文件关联吗???

如题..

前天电脑里的文件关联乱了..TXT EXE之类的文件都打不开了..  用软件修复成功,想问一下,批处理可以做到吗???
作者: zqz0012005     时间: 2008-7-29 17:28
cmd中直接运行
CODE:  [Copy to clipboard]
assoc .txt=txtfile
ftype txtfile=%SystemRoot%\notepad.exe %1
assoc .exe=exefile
ftype exefile="%1" %*
如果要保存为bat,将%替换成%%
作者: ixxxxyou     时间: 2008-7-30 00:03


  Quote:
Originally posted by zqz0012005 at 2008-7-29 05:28 PM:
cmd中直接运行
CODE:  [Copy to clipboard]
assoc .txt=txtfile
ftype txtfile=%SystemRoot%\notepad.exe %1
assoc .exe=exefile
ftype exefile="%1" %*
如果要保存为bat,将%替换成%%

那如果是MP3格式之类呢??

如果要保存为bat,将%替换成%%
assoc .txt=txtfile
ftype txtfile=%SystemRoot%\notepad.exe %1
assoc .exe=exefile
ftype exefile="%%1" %%*

这样?




欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) Powered by Discuz! 2.5