How do I run two commands in one line in Windows CMD?

后端 未结 19 1141
伪装坚强ぢ
伪装坚强ぢ 2020-11-22 00:45

I want to run two commands in a Windows CMD console.

In Linux I would do it like this

touch thisfile ; ls -lstrh

How is it done on

19条回答
  •  遥遥无期
    2020-11-22 01:18

    One more example: For example, when we use the gulp build system, instead of

    gulp - default > build

    gulp build - build build-folder

    gulp watch - start file-watch

    gulp dist - build dist-folder

    We can do that with one line:

    cd c:\xampp\htdocs\project & gulp & gulp watch
    

提交回复
热议问题