@echo off
:Start
choice /c SR /m "Start the branding work(S), rollback (R)"
if errorlevel 2 goto R
if errorlevel 1 goto S
REM ==========================================================================================================
:S
Echo please input your Mobility folder and enter,like: E:\Bob_Code\Mobility
set/p aa=
cd /d %aa%
Echo %aa%
if not exist "C:\Temp_Branding" md "C:\Temp_Branding"
copy /y MaxMobile\JavaClient\android\res\drawable\altigen_logo_transparent.png C:\Temp_Branding
copy /y MaxMobile\JavaClient\android\res\drawable\altimobilephone_icon.png C:\Temp_Branding
copy /y MaxMobile\JavaClient\android\res\values\strings.xml C:\Temp_Branding
REM ==================================================================================================
Echo Please input the product name you want to name, like "MaxMobile"
set/p repalcename=
@echo off
(for /f "delims=" %%a in (MaxMobile\JavaClient\android\res\values\strings.xml) do (
set str=%%a
setlocal enabledelayedexpansion
echo;!str:MaxMobile=%repalcename%!
endlocal
))>tem
move tem MaxMobile\JavaClient\android\res\values\strings.xml
REM ==========================================================================================================
Echo please specify the folder that contains the new customer logos image and rename them according to the function special.
set /p imagefolder=
Echo %imagefolder%
copy /y %imagefolder%\*.png MaxMobile\JavaClient\android\res\drawable
goto End
REM ===============================================================================================================
:R
Echo pls input your Mobility folder and enter,like: E:\Bob_Code\Mobility
set/p aa=
cd /d %aa%
copy /y C:\Temp_Branding\altigen_logo_transparent.png MaxMobile\JavaClient\android\res\drawable\altigen_logo_transparent.png
copy /y C:\Temp_Branding\altimobilephone_icon.png MaxMobile\JavaClient\android\res\drawable\altimobilephone_icon.png
copy /y C:\Temp_Branding\strings.xml MaxMobile\JavaClient\android\res\values\strings.xml
goto End
REM=======================================================================================================
:End
choice /c YN /m "Whether to continue"
if errorlevel 2 exit
if errorlevel 1 goto Start
exit.
:Start
choice /c SR /m "Start the branding work(S), rollback (R)"
if errorlevel 2 goto R
if errorlevel 1 goto S
REM ==========================================================================================================
:S
Echo please input your Mobility folder and enter,like: E:\Bob_Code\Mobility
set/p aa=
cd /d %aa%
Echo %aa%
if not exist "C:\Temp_Branding" md "C:\Temp_Branding"
copy /y MaxMobile\JavaClient\android\res\drawable\altigen_logo_transparent.png C:\Temp_Branding
copy /y MaxMobile\JavaClient\android\res\drawable\altimobilephone_icon.png C:\Temp_Branding
copy /y MaxMobile\JavaClient\android\res\values\strings.xml C:\Temp_Branding
REM ==================================================================================================
Echo Please input the product name you want to name, like "MaxMobile"
set/p repalcename=
@echo off
(for /f "delims=" %%a in (MaxMobile\JavaClient\android\res\values\strings.xml) do (
set str=%%a
setlocal enabledelayedexpansion
echo;!str:MaxMobile=%repalcename%!
endlocal
))>tem
move tem MaxMobile\JavaClient\android\res\values\strings.xml
REM ==========================================================================================================
Echo please specify the folder that contains the new customer logos image and rename them according to the function special.
set /p imagefolder=
Echo %imagefolder%
copy /y %imagefolder%\*.png MaxMobile\JavaClient\android\res\drawable
goto End
REM ===============================================================================================================
:R
Echo pls input your Mobility folder and enter,like: E:\Bob_Code\Mobility
set/p aa=
cd /d %aa%
copy /y C:\Temp_Branding\altigen_logo_transparent.png MaxMobile\JavaClient\android\res\drawable\altigen_logo_transparent.png
copy /y C:\Temp_Branding\altimobilephone_icon.png MaxMobile\JavaClient\android\res\drawable\altimobilephone_icon.png
copy /y C:\Temp_Branding\strings.xml MaxMobile\JavaClient\android\res\values\strings.xml
goto End
REM=======================================================================================================
:End
choice /c YN /m "Whether to continue"
if errorlevel 2 exit
if errorlevel 1 goto Start
exit.
做个快乐的自己。