/*************************************
*    Makeshift Shell for Windows    *
* This shell allows you to execute  *
* commands when command.com or      *
* cmd.exe is disabled. It has been  *
* done before but this is as much a *
* practice in c++ for me as it is a *
* needed utility so here's my       *
* version                           *
*                                   *
* author: stephen olsen             *
* [email protected]          *
*************************************/
#include <iostream.h>
#include <string.h>
#include <stdlib.h>

char command[100]; //command that will be executed
char end[100]; //end of cource

int main()
{
   cout << "Makeshift Shell\n";
   cout << "To exit please type end. Note: exit or quit will be
executed.\n";
   strcpy (end,"end");
   while (command != end)
   {
         cout << "\ncommand: ";
         cin.getline (command,100);
         system (command);
   }
   cout << "Goodbye";

   return 0;
}