//2.Open a file that coutain a set of commands
fid=fopen(argv[1],"r");
//3.For every command in the launch file
while(fgets(cmdLine,MAX_LINE_LEN,fid)!=NULL)
{
//Read a command from the file
if(cmdLine[strlen(cmdLine)-1]=='\n')
cmdLine[strlen(cmdLine)-1]='\0';//Remove NEWLINE
//Create a new process to execute the command
ZeroMemory(&startInfo,sizeof(startInfo));
startInfo.cb=sizeof(startInfo);