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