ShellExecute的使用
榕树花园 2007-11-09 08:00:19 #include "windows.h"
#include "Shellapi.h"
#include "iostream.h"
main()
{
HANDLE handle;
handle=CreateFile("那破轮.txt",GENERIC_READ,FILE_SHARE_READ,0,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,0);
char path[]="d:\\";
ShellExecute(handle, "open",path, NULL, NULL, SW_SHOWNORMAL);
}
运行不了的,参数不对