Programming, System Programming, Win32, C.
<tchar.h> #include <Windows.h> #include <Shellapi.h> int main(void) { if ((DWORD) ShellExecute(NULL, TEXT("open"), TEXT("Test.txt"), NULL, NULL, SW_SHOW) < 32) { _ftprintf(stderr, TEXT("cannot execute!..\n")); exit(EXIT_FAILURE); } _tprintf(TEXT("Preass ENTER to exit")); getchar(); return 0; }