hey all,
can one use variable in the system command?
ex:
# include <stdlib.h>
main(){
char x[4];
cin>>x;
system(x".exe");
}
hey all,
can one use variable in the system command?
ex:
# include <stdlib.h>
main(){
char x[4];
cin>>x;
system(x".exe");
}
sprintf(DosCommand, "Copy text9.exe %s.exe", RndWords);
system(DosCommand);
OK, thanks.
But whati f you're in Unix? Obviously, one wouldn't be using .exe.
But one would one use instead of DosCommand?
777
doscommand is a varialbe... i called doscommand for the hell of it... you can call it anything
eg: unixcommand, linuxcommand, retardcommand, happyman
anything at all