java - Add command to cmd history -


i'm trying run console program inside windows cmd terminal. works. program run don't added history.

string[] command = {"cmd.exe", "/c", "\"start cmd.exe /k \"" + commandline + "\"\""}; processbuilder builder = new processbuilder().command(command); start = builder.start(); 

i want add ability users rerun program lately. there way add command cmd.exe history?


Comments