How to run multiple commands in a batch file?

I have the following commands in a batch file. Although I try to run it using the Execute action in a Finalbuilder project, only one command was launched. So, I planned to have each command in different batch files. Can someone help me run all the commands in a single batch file with a delay (if required)?

Teams:

   dnvm list
   dnvm install 1.0.0-beta8
   dnvm use 1.0.0-beta8p
   dnvm -Args alias default 1.0.0-beta8

I also get the following error when I run the last command through a batch file using the Execute action in the FinalBuilder project.

Error: Invoke-Expression: Positional parameter could not be found, which takes an argument

+4
source share
2
call dnvm list
call dnvm install 1.0.0-beta8
call dnvm use 1.0.0-beta8 –p
call dnvm -Args alias default 1.0.0-beta8

call , , .

+10

"START/WAIT" . :

START "" /WAIT "dnvm list"
START "" /WAIT "dnvm install 1.0.0-beta8"
START "" /WAIT "dnvm use 1.0.0-beta8 –p"
START "" /WAIT "dnvm -Args alias default 1.0.0-beta8"
0

Source: https://habr.com/ru/post/1625309/


All Articles