android – Command prompt with React-Native

Question:

Guys, I program in react – Native and every time I access the CMD to run react I have to do a series of procedures that I'll write below

Does anyone know any way to create a bat that runs this command simultaneously one after the other?

Open CMD in 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 

Answer:

:: 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
Scroll to Top