1
0
mirror of https://github.com/PurpleI2P/i2pdbrowser synced 2025-01-15 17:20:02 +00:00
i2pdbrowser/windows_prebuilt/src/StartI2PdBrowser.bat

68 lines
2.0 KiB
Batchfile
Raw Normal View History

2016-12-08 18:22:24 +03:00
@ECHO OFF
REM BFCPEOPTIONSTART
REM Advanced BAT to EXE Converter www.BatToExeConverter.com
REM BFCPEEXE=StartI2PdBrowser.exe
REM BFCPEICON=i2pd_browser_icon_v3.ico
REM BFCPEICONINDEX=-1
REM BFCPEEMBEDDISPLAY=0
REM BFCPEEMBEDDELETE=1
REM BFCPEADMINEXE=0
REM BFCPEINVISEXE=0
REM BFCPEVERINCLUDE=1
2017-12-09 00:58:21 +03:00
REM BFCPEVERVERSION=1.2.6.0
2016-12-08 18:22:24 +03:00
REM BFCPEVERPRODUCT=I2Pd Browser Portable
REM BFCPEVERDESC=I2Pd Browser
REM BFCPEVERCOMPANY=PurpleI2P
2017-03-14 15:03:30 +03:00
REM BFCPEVERCOPYRIGHT=Copyright <20> 2013-2017 PurpleI2P Project
2016-12-08 18:22:24 +03:00
REM BFCPEOPTIONEND
2017-01-22 15:14:13 +03:00
REM Copyright (c) 2013-2017, The PurpleI2P Project
REM This file is part of Purple i2pd project and licensed under BSD3
REM See full license text in LICENSE file at top of project tree
2017-12-09 00:58:21 +03:00
title Starting I2Pd Browser 1.2.6
2016-12-08 18:22:24 +03:00
set $pause=ping.exe 0.0.0.0 -n
2017-10-19 03:28:51 +03:00
set $cd=%CD%
2016-12-08 18:22:24 +03:00
ver| find "6." >nul && set $pause=timeout.exe /t
set fire=firefox.exe
set port=FirefoxPortable.exe
set i2pd=i2pd.exe
2017-10-19 03:28:51 +03:00
if not exist Firefox ( echo Firefox not found... Start building... && cd build && call build.cmd )
2016-12-08 18:22:24 +03:00
taskList|find /i "%port%">nul&&(taskkill /im "%port%" /t>nul)&&(%$pause% 2 >nul)
REM taskList|find /i "%fire%">nul&&(taskkill /im "%fire%" >nul)
taskList|find /i "%i2pd%">nul&&(goto runfox)||(goto starti2p)
:starti2p
2017-10-19 03:28:51 +03:00
cd i2pd
start "" "%i2pd%"
2016-12-08 18:22:24 +03:00
echo i2pd Browser starting
echo Please wait
echo -------------------------------------
for /L %%B in (0,1,35) do (call :EchoWithoutCrLf "." && %$pause% 2 >nul)
echo .
echo -------------------------------------
echo Welcome to I2P Network
2017-10-19 03:28:51 +03:00
cd %$cd%
2016-12-08 18:22:24 +03:00
:runfox
2017-10-19 03:28:51 +03:00
cd Firefox
start "" "%port%"
cd %$cd%
2016-12-08 18:22:24 +03:00
exit /b 0
rem ==========================================================================
rem ==========================================================================
rem <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> EchoWithoutCrLf
rem
rem %1 : <20><><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
rem ==========================================================================
:EchoWithoutCrLf
<nul set /p strTemp=%~1
exit /b 0
rem ==========================================================================