Writing a program in C ++, and I want to issue a system command from the system () function, but I do not want the user to see this command (because the command includes pwd) in the executable window. I need to copy a file from the user directory to the server, preventing the user from accessing the server or displaying pwd. It turned out that with .exe this makes the easiest way.
Example:
("FILETRANSFER_SW.exe -pw helloWORLD11! @C: /temp.txt F: / tempfolder /")
But the executable window shows this command, so the goal is to hide the password.
I tried to issue the system ("@echo OFF") at the beginning of the program, but this does not suppress the following commands, they are still displayed in the executable window.
Any suggestions?
Thanks...
Abigail adams
source
share