How to? Call a batch file with variable?

Dec 10, 2021
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
 

samintz

Scott Mintz
May 20, 2008
1,537
25
Solon, OH, USA
Assuming there is a space in the name like "Program Files", you'll need to put quotes around it.
E.g. call "%ANDROID_SIGNER" ...
 
  • Like
Reactions: AnrDaemon

Similar threads