i2pd browser bundle
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.5 KiB

8 years ago
@ECHO OFF
7 years ago
REM Copyright (c) 2013-2018, The PurpleI2P Project
8 years ago
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
7 years ago
title Starting I2Pd Browser 1.2.7
8 years ago
set $pause=ping.exe 0.0.0.0 -n
7 years ago
set $cd=%CD%
8 years ago
ver| find "6." >nul && set $pause=timeout.exe /t
set fire=firefox.exe
set port=FirefoxPortable.exe
set i2pd=i2pd.exe
if not exist Firefox ( echo Firefox not found... Start building... && cd build && call build.cmd )
8 years ago
8 years ago
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
7 years ago
cd i2pd
start "" "%i2pd%"
8 years ago
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
7 years ago
cd %$cd%
8 years ago
:runfox
7 years ago
cd Firefox
start "" "%port%"
cd %$cd%
8 years ago
exit /b 0
rem ==========================================================================
rem ==========================================================================
rem <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> EchoWithoutCrLf
rem
rem %1 : <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD> <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>.
rem ==========================================================================
:EchoWithoutCrLf
<nul set /p strTemp=%~1
exit /b 0
rem ==========================================================================