Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

How to? Call a batch file with variable?

Dec
2
0
I'm doing

call %ANDROID_SIGNER% sign -v ...etc

where ANDROID_SIGNER is

set ANDROID_TOOLS_PATH=%ANDROID_SDK_PATH%\build-tools
set ANDROID_TOOLS_VER=29.0.2
set ANDROID_SIGNER=%ANDROID_TOOLS_PATH%\%ANDROID_TOOLS_VER%\apksigner.bat

etc

and I get Unknown command "C:"

Am I doing something wrong?

Thanks
 
After setting ANDROID_SIGNER, echo %ANDROID_SIGNER% to see what it looks like.
 
Assuming there is a space in the name like "Program Files", you'll need to put quotes around it.
E.g. call "%ANDROID_SIGNER" ...
 

Similar threads

Back
Top