How do I execute cmd commands through a batch file?

前端 未结 8 778
难免孤独
难免孤独 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条回答
  •  抹茶落季
    2020-12-02 08:11

    I know DOS and cmd prompt DOES NOT LIKE spaces in folder names. Your code starts with

    cd c:\Program files\IIS Express

    and it's trying to go to c:\Program in stead of C:\"Program Files"

    Change the folder name and *.exe name. Hope this helps

提交回复
热议问题