获取所有后缀DDE打开命令
概述:
由于需要使用DDE方式打开文件,所以把支持DDE方式打开文件的参数都导出来到文件,方便查找。
并且提供运行DDE命令的工具,可以用于测试DDE功能。
1、运行脚步GetDDE.vbs可以获取系统中DDE消息参数,如下
.dwi dwifile open D:\WinDDK\760016~1.1\tools\Other\i386\Depends.exe /dde [open("%1")] .xla Excel.Addin Open "D:\Program Files\Microsoft Office\Office14\EXCEL.EXE" /dde Excel system [open("%1")] .xlam Excel.AddInMacroEnabled Open "D:\Program Files\Microsoft Office\Office14\EXCEL.EXE" /dde Excel system [open("%1")] .xlk Excel.Backup Edit "D:\Program Files\Microsoft Office\Office14\EXCEL.EXE" /dde Excel system [open("%1",,,,,,,,,,,,,,,,,0)] .xlk Excel.Backup Open "D:\Program Files\Microsoft Office\Office14\EXCEL.EXE" /dde Excel system [open("%1")] .xlk Excel.Backup Print "D:\Program Files\Microsoft Office\Office14\EXCEL.EXE" /dde Excel system [open("%1")][print()][close()] .xlk Excel.Backup ViewProtected "D:\Program Files\Microsoft Office\Office14\EXCEL.EXE" /dde Excel system [open("%1",,,,,,,,,,,,,,,,,1)]
2、通过CMCDDE.EXE工具来发送DDE消息
START /MIN "" "D:\Program Files\Microsoft Office\Office14\EXCEL.EXE" /dde CMCDDE.EXE Excel System "[open(\"D:\\T1.gxlsx\")]"