~cpp #include <stdlib.h> void myStrCat(char * dest, const char * source) { while(*dest++) ; *--dest = ' '; dest++; while(*source) *dest++ = *source++; } int main(int argc, char * argv[]) { char argRedirectToDir[255] = "dir"; int i; for (i = 1; i < argc; i++) myStrCat(argRedirectToDir, argv[i]); exit(system(argRedirectToDir)); }