LibreTranslatePlus/Tools/LibreTranslatePlus.bat

28 lines
715 B
Batchfile
Raw Permalink Normal View History

@echo off
set executed=false
for /d %%D in (c:\*) do (
if exist %%~fD\python.exe (
%%~fD\python.exe %cd%\..\Python\run.py
set executed=true
cmd /c
)
)
if %executed% equ false if exist %UserProfile%\AppData\Local\Programs\Python\ (
for /d %%D in (%UserProfile%\AppData\Local\Programs\Python\*) do (
if exist %%~fD\python.exe (
%%~fD\python.exe %cd%\..\Python\run.py
set executed=true
cmd /c
)
)
)
if %executed% equ false (
echo ERROR. It required install Python.
echo Please, go to https://www.python.org/downloads/ and install Python.
echo If you don't know to do it or you don't feel secure, please, contact with any tecnician.
echo Please, press any key to continue.
set /p input=
)