I am creating a little program to take away some of my work by using a GUI.
What I have right now is a little program with a button “Start” which starts a CMD-based application. What I need to do is enter a certain command in that CMD window. I want to add a button which fills out this command for me.
Is this even possible?
P.S.: CMD is Windows’s Command Prompt.
Thank you all.
This works if it is an external command:
If it is an internal command then that will not work, but there is a workaround: create a batch file with the commands in it, and put a String with the path to the batch file as an argument.
Or you can write the batch file programmatically using this method: