Copy codeThe Code is as follows: # include <windows. h>
# Include <stdio. h>
Int main ()
{
// Open notepad
// ShellExecute (NULL, "open", "notepad.exe", NULL, NULL, SW_SHOWNORMAL );
// Use notepad.exe to open the specified text. Do not add '\' to the parameter '\'
// ShellExecute (NULL, "open", "notepad.exe", "F: \ miscellaneous \ test.txt", NULL, SW_SHOWNORMAL );
// Unicode version
// ShellExecute (NULL, TEXT ("open"), TEXT ("notepad.exe"), TEXT ("F: \ miscellaneous \ test.txt"), NULL, SW_SHOWNORMAL );
ShellExecute (NULL, TEXT ("open"), TEXT ("C: \ Program Files \ Internet Explorer \ iw.e.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;
}