// shellex.cpp : Definiert den Einsprungpunkt für die Konsolenanwendung.
//
#include "stdafx.h"
// hier die api includes
#include <windows.h>
#include <shellapi.h>
int main(int argc, char* argv[])
{
char *WorkFolder;
WorkFolder = argv[0];
if (argv[1] != NULL)
{
int testlen;
testlen = strlen(WorkFolder)-11;
strncpy(WorkFolder +testlen,"\0",2);
strcat(WorkFolder,argv[1]);
// hier ein api call
ShellExecute(NULL,"opennew",WorkFolder,NULL,NULL,SW_SHOWNORMAL);
}
else
printf("\nUsage shellex.exe <path to html\\>html file!\n");
return 0;
}