makeHostsWindows.bat: expand
authorTomasz Przybył <redacted>
Sat, 3 Sep 2016 13:59:33 +0000 (15:59 +0200)
committerGitHub <redacted>
Sat, 3 Sep 2016 13:59:33 +0000 (15:59 +0200)
- check if python runtime 3.5 is available on system

makeHostsWindows.bat

index 317b968d26ec5592d0c581a2b8aefa34cdf5cb19..a5929c2bbdbc39f46bbb5e3cf7bd0a1ec1563212 100644 (file)
@@ -1,4 +1,24 @@
 @ECHO OFF
+
+if not exist "%WINDIR%\py.exe" (
+       ECHO :: ERROR :: Python 3.5 Runtime NOT FOUND...
+       ECHO :: ERROR :: Download and install lastest Python 3.5 for Windows from https://www.python.org/downloads/
+       ECHO :: ERROR :: Exit...
+       GOTO END
+) ELSE ( 
+       GOTO PY35RT
+ )
+:PY35RT
+if not exist "%PROGRAMFILES%\python35\Python35.dll" (
+       ECHO :: ERROR :: Python 3.5 Runtime NOT FOUND...
+       ECHO :: ERROR :: Download and install lastest Python 3.5 for Windows from https://www.python.org/downloads/
+       ECHO :: ERROR :: Exit...
+       GOTO END
+) ELSE ( 
+       ECHO :: INFO :: Python 3.5 Runtime was found!
+       ECHO :: INFO :: Running main script...
+       GOTO :UPDATES
+ )
 :UPDATES
        ::These create various alternate hosts files by combining and adding the gambling, porn, and social media extensions.
        updateHostsFile.py -a    -o alternates\gambling -e gambling
git clone https://git.99rst.org/PROJECT