How do I execute cmd commands through a batch file?

前端 未结 8 796
难免孤独
难免孤独 2020-12-02 07:37

I want to write a batch file that will do following things in given order:

  1. Open cmd
  2. Run cmd command cd c:\\Program files\\IIS Express
8条回答
  •  萌比男神i
    2020-12-02 08:09

    start cmd /k "your cmd command1"
    start cmd /k "your cmd command2"
    

    It works in Windows server2012 while I use these command in one batch file.

提交回复
热议问题