Skip to content

Commit

Permalink
finally it support all thing
Browse files Browse the repository at this point in the history
support for win-xp/vista/7/8 
  • Loading branch information
venkatkamesh committed Jan 24, 2013
1 parent 72c7ea6 commit 529632f
Showing 1 changed file with 199 additions and 7 deletions.
206 changes: 199 additions & 7 deletions antdking's p350 toolkit.bat
Expand Up @@ -110,7 +110,7 @@ cls
color 0b
echo _______________________________________________________________________________
echo.
echo antdking's and Kamesh's LG P350 Toolkit
echo Kamesh's and antdking's LG P350 Toolkit
echo _______________________________________________________________________________
ping localhost -n 2 >nul
echo.
Expand Down Expand Up @@ -138,14 +138,54 @@ echo Is this pc/system got installed with LGE P350 DRIVERS ?
set /p choice=y/n...
if '%choice%'=='y' goto question
if '%choice%'=='Y' goto question
if '%choice%'=='n' goto driver
if '%choice%'=='N' goto driver
if '%choice%'=='n' goto windows
if '%choice%'=='N' goto windows
if '%choice%'=='0' goto lastres
echo.
ECHO %choice% please use y or n
ping localhost -n 2 >nul
goto start

:windows
cls
echo welcome to kamesh'tools of installation
echo.
echo Which type of windows version you are using ?
echo.
echo 1.winXP/vista
echo 2.win7 all version of 64/32
echo 3.win8 all version of 64/32
echo 4.back to main
set /p choice=1/2/3/4...
if '%choice%'=='1' goto driver
if '%choice%'=='2' goto driver
if '%choice%'=='3' goto driver5
if '%choice%'=='4' goto question
if '%choice%'=='0' goto lastres
ECHO please choose a number between 1 and 4
ping localhost -n 2 >nul
goto windows


:driver5
cls
echo Select any one of the option below for the drivers
echo.
echo 1.download and install the drivers automatically
echo 2.open link to the drivers
echo 3.find drivers yourself and go to device detect
set /p choice=1/2/3...
if '%choice%'=='1' goto getdriver5
if '%choice%'=='2' goto openlink
if '%choice%'=='3' goto question
if '%choice%'=='0' goto lastres
ECHO please choose a number between 1 and 3
ping localhost -n 2 >nul
goto driver5


:driver
cls
echo Select any one of the option below for the drivers
echo.
echo 1.download and install the drivers automatically
Expand All @@ -160,6 +200,7 @@ ECHO please choose a number between 1 and 3
ping localhost -n 2 >nul
goto driver


:openlink
echo opening link...
rundll32 url.dll,FileProtocolHandler http://www.lg.com/uk/support-mobile/lg-LGP350
Expand All @@ -172,6 +213,35 @@ pause
goto adbdevice


:getdriver5
echo checking for previous installers
if not exist "driver" mkdir "driver"
cd driver\
if exist "*.exe" del /Q "*.exe" >nul
cd..
xcopy /q %0\..\dependancies\wget.exe %0\..\driver
echo initialising wget...
cd driver
wget --output-document=driver.exe http://www.lg.com/us/products/documents/LGAndroidDriver_Ver_1.0_All.exe
echo continue with installation?
echo CTRL + C to cancel job
timeout /t 10
echo the driver will now install
echo nothing is meant to pop up
del /Q wget.exe
driver.exe /s /sms
:wait
choice /t 1 /d Y > nul:
tasklist /FI "IMAGENAME eq driver.exe" | find /I "driver.exe" > nul:
if not errorlevel 1 goto wait
echo the driver is now installed
cd..
ping localhost -n 2 >nul
echo please plug in your phone
echo go to device detect?
pause
goto question

:getdriverins
echo checking for previous installers
if not exist "driver" mkdir "driver"
Expand Down Expand Up @@ -275,24 +345,146 @@ goto check12
cls
echo hello and welcome to Venkat kamesh's fastboot tool
ping localhost -n 3 >nul
cd dependancies/fastboot
echo.
echo Does your mobile show anything "portchance" or commands when connected to pc?
echo Do your system had installed with sdk tools ?
set /p choice=y/n...
if '%choice%'=='Y' goto fastboot1
if '%choice%'=='y' goto fastboot1
if '%choice%'=='n' goto check12
if '%choice%'=='N' echo check12
if '%choice%'=='n' goto sdktool
if '%choice%'=='N' echo sdktool
ECHO please use y or n
ping localhost -n 2 >nul
goto fastboot

:sdktool
cls
cd..
echo [1]SDK tools for win 32bit
echo [2]SDK tools for win 64bit
echo [3]Even installed the drivers it shows nothing ?
set /p choice=0-3...
if '%choice%'=='1' goto sdktool32
if '%choice%'=='2' goto sdktool64
if '%choice%'=='3' echo Sorry try once or consult customer care & ping localhost -n 5 >nul & echo now exiting.. & ping localhost -n 5 >nul & exit
if '%choice%'=='0' goto lastres
ECHO please use y or n
ping localhost -n 2 >nul
goto sdktool

:sdktool32
cls
echo Select any one of the option below for the drivers
echo.
echo 1.download and install the drivers automatically
echo 2.open link to the drivers
echo 3.find sdk drivers yourself and go to device detect
set /p choice=1/2/3...
if '%choice%'=='1' goto sdktoolins32
if '%choice%'=='2' goto linksdk
if '%choice%'=='3' goto question
if '%choice%'=='0' goto lastres
ECHO please choose a number between 1 and 3
ping localhost -n 2 >nul
goto sdktool32


:sdktoolins32
echo checking previous installation
if not exist "sdk" mkdir "sdk"
cd sdk\
if exist "*.exe" del /Q "*.exe" >nul
cd..
xcopy /q %0\..\dependancies\wget.exe %0\..\sdk
echo initialising wget...
cd sdk
wget --output-document=sdk32.exe http://dl.google.com/android/adt/adt-bundle-windows-x86.zip
echo continue with installation?
echo CTRL + C to cancel job
timeout /t 10
echo the driver will now install
echo nothing is meant to pop up
del /Q wget.exe
sdk32.exe /s /sms
:wait
choice /t 1 /d Y > nul:
tasklist /FI "IMAGENAME eq sdk32.exe" | find /I "sdk32.exe" > nul:
if not errorlevel 1 goto wait
echo the driver is now installed
cd..
ping localhost -n 2 >nul
echo please plug in your phone
echo go to device detect?
pause
goto fastboot

:sdktool64
cls
echo Select any one of the option below for the drivers
echo.
echo 1.download and install the drivers automatically
echo 2.open link to the drivers
echo 3.find sdk drivers yourself and go to device detect
set /p choice=1/2/3...
if '%choice%'=='1' goto sdktoolins64
if '%choice%'=='2' goto linksdk
if '%choice%'=='3' goto question
if '%choice%'=='0' goto lastres
ECHO please choose a number between 1 and 3
ping localhost -n 2 >nul
goto sdktool64


:sdktoolins64
cls
echo checking for previous installers
if not exist "sdk" mkdir "sdk"
cd sdk\
if exist "*.exe" del /Q "*.exe" >nul
cd..
xcopy /q %0\..\dependancies\wget.exe %0\..\sdk
echo initialising wget...
cd sdk
wget --output-document=sdk64.exe http://dl.google.com/android/adt/adt-bundle-windows-x86_64.zip
echo continue with installation?
echo CTRL + C to cancel job
timeout /t 10
echo the driver will now install
echo nothing is meant to pop up
del /Q wget.exe
sdk64.exe /s /sms
:wait
choice /t 1 /d Y > nul:
tasklist /FI "IMAGENAME eq sdk64.exe" | find /I "sdk64.exe" > nul:
if not errorlevel 1 goto wait
echo the sdk 64bit drivers is now installed
cd..
ping localhost -n 2 >nul
echo please plug in your phone
echo go to device detect?
pause
goto fastboot

:linksdk
echo opening link...
rundll32 url.dll,FileProtocolHandler http://developer.android.com/sdk/index.html
echo install your driver
ping localhost -n 5 >nul
echo then please plug in your phone
ping localhost -n 2 >nul
echo go to device detect?
pause
goto question

:fastboot1
cls
echo hello and welcome to Venkat kamesh's fastboot tool
echo.
echo if nothing is going with mobile then press CTRL + C to end
ping localhost -n 3 >nul
cd dependancies/fastboot
echo erasing old recovery partition
fastboot erase recovery
ping localhost -n 2 >nul
echo flashing new recovery with wiped partition
fastboot flash recovery recovery.img
goto reboot
Expand Down

0 comments on commit 529632f

Please sign in to comment.