I have a batch script that looks like this:
Start /D "application1\backend\application1" cmd /K "git pull"
This quickly flashes a command terminal and then opens a second one in which the git pull
command is run. When it's done, it stays open.
If I take out the /K
, it again flashes a command terminal and opens a second terminal in which nothing happens (the prompt just sits there waiting for input). And it stays open.
What I want is to run the git pull
command and then close the terminal. How can I modify my batch script so that it does this?
Thanks!