I am trying to write a .bat file to open a program with specific options.
When the .bat file has finished running, I would like it to close it's window. I have tried adding EXIT to the end of the code but it doesn't work. If I put it on the same line as the last bit of my program opening code, I get an error to say the program being opened doesn't recognise some of the code. If I put it on a new line, it appears to be ignored.
How can I make this work?
Also, is there any way to make a batch file run without displaying a window at all?