can the procedure in the program be hidden?
is there any way to hidden the procedure performed by the program which is the system("") command?
e.g.
i have a sentence :
system("map delete m:");
when i run the program, "map delete m:" will pop up in the dos prompt... is there ay way to hidden that?
thank you for helping.
Re: can the procedure in the program be hidden?
Quote:
Originally posted by Jasonymk
is there any way to hidden the procedure performed by the program which is the system("") command?
e.g.
i have a sentence :
system("map delete m:");
when i run the program, "map delete m:" will pop up in the dos prompt... is there ay way to hidden that?
thank you for helping.
or you could use "map delete m: > NUL" which will re-direct the output from the 'map' command to the file you specify (in this case NUL which will simply ignore it).
I know this works in DOS and in a "dos box" in windows, I however don't know if it would work in the *nix environment as I have (sadly) never had the opportunity to really play around with.
You can test it out by going to the command prompt and typing
"dir"
and then
"dir > NUL"
and then
"dir > result.txt"
The first will show you the directory.
The second will show you nothing.
The third will create a file called 'result.txt' and redirect the output from the dir into that text file.
Hope this helps. :)
-jEssYcAt