Hi again! Yesterday I tried something, I remember I found it very stupidly! I wanted to get a filename as an argument and then put it into a variable and put it into a system(); statement! So it got something like this:
Of course it didn't work because the statement system() does not allow this, but then I asked myself: How to make it diferent?Code:#include<stdio.h> #include<stdlib.h> int main(int argc, char *argv[]) { if ( argc < 2) { printf("Usage copy [file1] [target]\n"); return 0; } else { system("copy" argv[1] argv[2]); return 0; }
And now I ask you! Could you help me...? Thanx! [email protected] !