因爲須要使用DDE方式打開文件,因此把支持DDE方式打開文件的參數都導出來到文件,方便查找。工具
而且提供運行DDE命令的工具,能夠用於測試DDE功能。測試
一、運行腳步GetDDE.vbs能夠獲取系統中DDE消息參數,以下ui
.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)]
二、經過CMCDDE.EXE工具來發送DDE消息spa
START /MIN "" "D:\Program Files\Microsoft Office\Office14\EXCEL.EXE" /dde CMCDDE.EXE Excel System "[open(\"D:\\T1.gxlsx\")]"
工具下載code