#include <iostream>
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
using namespace std;
int main()
{
TCHAR ws_Directory[MAX_PATH];
GetCurrentDirectory(MAX_PATH, ws_Directory);
wcout << ws_Directory << endl;
STARTUPINFO start_info;
memset(&start_info, 0, sizeof (start_info));
PROCESS_INFORMATION info;
memset(&info, 0, sizeof (info));
TCHAR str_Command[MAX_PATH];
while (CSTR_EQUAL != CompareStringW(NULL, TRUE, str_Command, 4, L"quit", 4))
{
wcout << ws_Directory << "\\";
wcin >> str_Command;
CreateProcess(NULL, str_Command, NULL, NULL, FALSE, 0, NULL, NULL, &start_info, &info);
}
return 0;
}