Reputation: 45
In Java, you can execute a process and pass command line arguments to it via Runtime.getRuntime().exec().
The arguments you passed into the program can be seen in the task manager or the process explorer. I want to know if there is a way to hide or clear that command history, so that it can be seen by neither.
Any help is appreciated.
Upvotes: 3
Views: 1028
Reputation: 5622
You cannot hide the process or the full command that started it. Whatever you pass as command to Runtime#exec
will show and there is no way around it.
Your alternatives are:
Upvotes: 1