ShellExecute 함수 용법 의 인 스 턴 스 코드
968 단어 ShellExecute
#include<windows.h>
#include<stdio.h>
int main()
{
//
// ShellExecute(NULL, "open", "notepad.exe", NULL, NULL, SW_SHOWNORMAL);
// notepad.exe , '\'
//ShellExecute(NULL, "open", "notepad.exe", "F:\\ \\test.txt", NULL, SW_SHOWNORMAL);
//Unicode
//ShellExecute(NULL, TEXT("open"),TEXT( "notepad.exe"), TEXT("F:\\ \\test.txt"), NULL, SW_SHOWNORMAL);
ShellExecute(NULL, TEXT("open"), TEXT("C:\\Program Files\\Internet Explorer\\iexplore.exe"), TEXT("bbs.cnhonker.com"), NULL, SW_SHOWNORMAL);
//ShellExecute(NULL, TEXT("open"), TEXT("C:\\Program Files (x86)\\Google\Chrome\\Application\\chrome.exe"), TEXT("bbs.cnhonker.com"), NULL, SW_SHOWNORMAL);
scanf("%*d");
return 0;
}