Skip to content

Instantly share code, notes, and snippets.

@Linda-chan Linda-chan/CMD.CPP
Created Dec 1, 2019

Embed
What would you like to do?
#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
You can’t perform that action at this time.