React-Native Command Propt

0

Does anyone know of any way to create a bat that is already executing this command one after the other?

Open the CMD in the document folder

Cd usuário 
Cd principal
Cd appdata 
Cd local 
Cd Android 
Cd SDK 
Cd plataforms- tools 

React-native TCP:8081 tcp8081 

Cd ../../../../../    
Cd documentos
Cd pasta
React-native run-android 
    
asked by anonymous 09.10.2018 / 13:43

1 answer

0

:: Tchê, se entendi...

@echo off && cd  /d %systemdrive% & cd \ & title .:^|:. React-native run-android .:^|:. 

:: usuário == %username%

pushd "%userprofile%\principal\appdata\local\Android\SDK\plataforms- tools\"

call start /b .\React-native TCP:8081 tcp8081 && popd

:: Cd documentos seria a mesma pasta: user\documentos? caso contrário apague abaixo
cd "%userprofile%\documentos\pasta" && call start /b .\React-native run-android

:: cd documentos não seria a mesma pasta: user\documentos! caso contrário apague abaixo
cd "%userprofile%\documentos\pasta\" && call start /b .\React-native run-android
    
20.11.2018 / 15:06