home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 8 Other
/
08-Other.zip
/
execnet.zip
/
Exec.c
next >
Wrap
Text File
|
1997-10-17
|
498b
|
20 lines
/* Rolf Breuning 25.4.95
Collect command line arguments and execute them in a command line.
This allows to simulate OS/2 program objects on network drives which
support extended attributes.
*/
#include <stdlib.h>
int main(int argc, char * argv[]) {
int i;
char cmd[200], *p = cmd, *arg;
for (i = 1; i < argc; i++) {
arg = argv[i];
if(*arg == '#' && *(arg+1) == '0') arg = argv[0];
while (*p++ = *arg++);
*(p-1) = ' ';
};
system(cmd);
}