最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

cmd - How can I write a batch script that opens a command window, executes a command, and then close the window? - Stack Overflo

programmeradmin2浏览0评论

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!

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论