1
0
mirror of https://github.com/PurpleI2P/i2pdbrowser synced 2025-01-12 15:57:54 +00:00
i2pdbrowser/windows/StartI2PdBrowser.bat
R4SAS b4a1d778cf 1.2.7 init
Former-commit-id: 153796d35e
2018-03-20 23:27:29 +03:00

53 lines
1.5 KiB
Batchfile

@ECHO OFF
REM Copyright (c) 2013-2018, 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
title Starting I2Pd Browser 1.2.7
set $pause=ping.exe 0.0.0.0 -n
set $cd=%CD%
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 )
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
cd i2pd
start "" "%i2pd%"
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
cd %$cd%
:runfox
cd Firefox
start "" "%port%"
cd %$cd%
exit /b 0
rem ==========================================================================
rem ==========================================================================
rem Ïðîöåäóðà EchoWithoutCrLf
rem
rem %1 : òåêñò äëÿ âûâîäà.
rem ==========================================================================
:EchoWithoutCrLf
<nul set /p strTemp=%~1
exit /b 0
rem ==========================================================================