S
S
Space2015-09-10 13:38:22
cmd/bat
Space, 2015-09-10 13:38:22

How to execute commands one by one in cmd?

There are three commands:

"c:\Program Files (x86)\BlueStacks\HD-Adb.exe" shell
/system/xbin/bstk/su
pm disable-user com.bluestacks.s2p

I calmly execute them manually in cmd, inserting each one in turn. If I add them all at once to the batch file, then only the first one will be executed. But I don’t know how to automatically execute the rest - after the first command, the $ symbol is added in the next line . As I understand it, it prevents the machine from inserting the following command.
Tell me how can I fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Max, 2015-09-10
@ruslite

Your script is waiting for "c:\Program Files (x86)\BlueStacks\HD-Adb.exe" shell to complete.
add the word start to the beginning of the line - the batch file will not wait =)
i.e. first line

start "c:\Program Files (x86)\BlueStacks\HD-Adb.exe" shell.

A
Andrey Katerinich, 2015-09-10
@AndrewJonson

In the batch file you created, add pause at the end - you will see what the console writes, and there you may understand the reason, and write here what happens.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question