28 lines
723 B
Batchfile
Executable File
28 lines
723 B
Batchfile
Executable File
@echo off
|
|
|
|
set executed=false
|
|
|
|
for /d %%D in (c:\*) do (
|
|
if exist %%~fD\python.exe (
|
|
%%~fD\python.exe %cd%\..\Python\test.py %1
|
|
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\test.py %1
|
|
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=
|
|
) |