mfc-vc-shellexecute-打开文件夹或者一个网址的用法

mfc-vc-shellexecute打开指定文件夹,用explore


ShellExecute(NULL,"explore", "d:\test" ,NULL,NULL,SW_SHOWNORMAL);

mfc-vc-shellexecute打开指定网址,用open


ShellExecute(NULL,"open", "http://www.baidu.com" ,NULL,NULL,SW_SHOWNORMAL);

Leave a Reply