| 
 | 
 
 
打开Total commander的配置,按照上图路径配置好fcs.btm的路径 
其中fcs.btm默认用tcc打开,fcs.btm的内容如下: 
@echo off 
set a=%@xmlopen[%~dp0ext.xml] 
set b=%@xmlnodes[/files] 
set app=notepad.exe 
set ext=%@ext[%1] 
do i=1 to %b 
   set t=%@xmlxpath[/files/file[%i]/ext] 
   if /i %t==%ext set app=%@xmlxpath[/files/file[%i]/app] 
enddo 
set c=%@xmlclose[%a] 
start "run-me" /c %app %1 
delay 1 
activate "run-me" /min 
exit 
 
 
 
 
 
 
tcc里面自带了xml解析器,非常方便写xml作为配置文件,上面是使用说明,有例子方便阅读 
配置文件名为ext.xml跟fcs.btm放在相同的文件夹,内容如下: 
不用解释一看就懂 
<?xml version="1.0" encoding="GBK"?> 
<files> 
        <file> 
                <ext>doc</ext> 
                <app>%Commander_path%\..\awp\awp.exe</app> 
        </file> 
        <file> 
                <ext>docx</ext> 
                <app>%Commander_path%\..\awp\awp.exe</app> 
        </file> 
        <file> 
                <ext>xls</ext> 
                <app>%Commander_path%\..\Spread\Spread32.exe</app> 
        </file> 
        <file> 
                <ext>xlsx</ext> 
                <app>%Commander_path%\..\Spread\Spread32.exe</app> 
        </file> 
</file> 
 
 
total commander按F4运行的效果就是自带根据文件的后缀名去调用相应的编辑程序。 
 |   
 
评分
- 
查看全部评分
 
 
 
 
 
 |