// Performs DOS command, invokes result as new edit session // RDOS DIR Y:\BOOKS /S /ON void rdos(void) { char *tfile = "c:\\temp\\rdos.txt"; char *tcmd; char *msg; int i; //--- Get Parms --- i = 1; while (i < argc) { strcat(msg,StrCompose(" ",argv[i])); ++i; } // while // --- Build System Command if(fileexist(tfile)){ tcmd = filedelete(tfile);} tcmd = strcompose("system nostop ",msg," > ",tfile); spfservice("cmd",tcmd); tcmd = strcompose("edit ",tfile); spfservice("cmd",tcmd); } // rdos