Skip to content

Instantly share code, notes, and snippets.

@Linda-chan
Created December 1, 2019 23:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Linda-chan/77e20f0becf8288a518148c89f72142a to your computer and use it in GitHub Desktop.
Save Linda-chan/77e20f0becf8288a518148c89f72142a to your computer and use it in GitHub Desktop.
#include <AJP System.H>
//===================================================================
int WINAPI WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
char szDirectory[513] = "\0";
GetCurrentDirectory(512, szDirectory);
ShellExecute(0, "open", "Command.COM", lpCmdLine,
szDirectory, SW_SHOWNORMAL);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment