flashget有個功能,當檔案下載完畢,選擇該檔,按「Ctrl+Enter」可直接開啟該檔所在目錄並把該檔highlight
如何在程式中實現此功能?
反組譯一下flashget,用ollydbg attach 到 flashget,然後對WinExec,ShellExecute 等函數下斷點。當flashget 定位文件时,會看到eax顯示
『explorer /n,/select, C:testfile.txt』
於是在程式中呼叫
char CmdLine[] = 『explorer /n,/select,C:\test\file.txt』
WinExec(CmdLine, SW_SHOW);
即可