can i execute multiple exe files from inside another c program ?
413343
You may use the function : \n1) system() \n2) spawnl() or it varients\n3) execl() or its varients \n\nfor the path argument simply pass the path of the .exe file that you with to run in double quotes and use double backslash instead of the single backslash. \n\nBefore you run the program, \nyou have to make sure that the path variable has been set to the directory where your progam resides. \n\nwrite a while loop with an switch-case and escape condition. Within each case call the appropriate program (run the .exe file) using spawnl or execl. These functions run the programs as child processes. But remember, if you do not set the path variable, nothing will work properly.  Good luck!
748713
depending on what programs.  some programs do not require dll or other files in windows folder, than you can just straight copy, but some you have to get the original copy
533249
yes, it sounds like it, format the c drive, make a directory called xpinstall or something, copy the folder i386 into the folder you made on the c drive, navigate to that foler and type winnt.exe
680504
/*\nOriginal Question:\nI am writing a C program in Solaris environment...if i\nwant to execute some system command i can do it using\nsystem("string to be executed")....but it accepts string\nonly. what if i want to pass some variables to system at\nrun time....suppose i was to use this commands at runtime\n"cat file1 file2 >file3"....how i wud pass the file names?\nany suggestions !  thnx in advance Amardeep Sidhu\n*/\n\n#include <stdlib.h>\n#include <stdio.h>\n\nint\nmain(int argc, char* argv[])\n{\n\n  /* First, get some values into variables */\n\n  char *str1 = "ls";\n  char *str2 = "-l";\n  char *str3 = "/tmp";\n\n  /* One common trick to using "system()" is */\n  /* to "sprintf()" the arguments into a buffer */\n  {\n    char buffer[100];\n    sprintf(buffer, "%s %s %s", str1, str2, str3);\n    system(buffer);\n  }\n\n  return 0;\n}
629036
If the program was downloaded from the Internet - you just copy setup.exe or similar
321452
Not natively within DOS... but with a MS resource you can.\n\nSee here ( http://www.windowsitpro.com/Web/Article/ArticleID/16048/16048.html  ) for more info - but the gist is that httpcmd.exe allows you to pipe HTML GET requests and use the output - which should let you download and save files if used correctly.\n\nHope that helps!
87841
Hammer vs. Screwdriver?    Depends on what you're doing.\n\nIf you're simulating protein folding while investigating\nnew medicines, you probably want to compile your code in\norder to get maximum efficiency.  In that case, you don't\nmind messing around with compiler options and having to\nkeep track of a separate executable file.\n\nIf you want a simple utility that will run occasionally\nand clean up some files, why not just use a korn shell\nscript which is interpretted?  Only one file to keep\ntrack of (which is both "source" and "executable"), \nno compiler to mess with, no options to tweak, typically\neasier to debug and really no performance downside\n(since the work is  small enough that it appears to\nrun instantaneously anyway).\n\nEach has its own place.
920170
Ok, I'll answer this once and not anymore, first off all I highly recommend you don't ask that question on thee boards.\n\nModify the exe or generate a key.
189850
no u cant , its a program used for running ur system
580565
The Platform SDK contains a debugger that lets you do that. EXE files are PE files, not a stream of machine instructions. They have machine instructions that can be relocated by chunks, among other things.\nThe debugger will help you with all the details.
423103
#include <stdio.h>\n#include <stdlib.h>\n\nint\nmain(int argc, char* argv[])\n{\n  int count = argc>1 ? atoi(argv[1]) : 10;\n  FILE *f = fopen("numfile", "w+");\n  if (!f)\n    perror("fopen"), exit(-1);\n  for (int i=0; i<count; i++)\n    fprintf(f, "%d&#92;n", rand());\n  fclose(f);\n  return 0;\n}
1132178
after you unzipped it you have to see one or more files. if it's a program duble click the one with the .exe extension
760548
Well, you can find a lot of C source code at the URL below, though you may need to modify a thing or two to use it under Turbo C and any Windows code won't likely work.
15588
This may sound like a foolish question, but: are you sure you're entering a program executable file?  Just be sure you're using the right filename.\n\nAlso, depending on the program, you may need to type the entire file path to it.
803727
.exe file cannot be attached such as setup files
248729
uses ShellApi;\n...\nShellExecute(Handle, 'open', 'c:&#92;Windows&#92;notepad.exe', nil, nil, SW_SHOWNORMAL) ;
522498
Ccompress it with something like WinZip