forked from cztomczak/cefpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenvpath_py27_32bit.bat
More file actions
24 lines (16 loc) · 863 Bytes
/
envpath_py27_32bit.bat
File metadata and controls
24 lines (16 loc) · 863 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@echo off
@REM # So that replacement on string can be done.
SETLOCAL EnableDelayedExpansion
@echo Current PATH: %PATH%
@echo.
SET newpath=%PATH:python32=python27%
SET newpath=%newpath:_64bit=_32bit%
@echo New PATH:
@echo %newpath%
@REM # http://stackoverflow.com/questions/531998/is-there-a-way-to-set-the-environment-path-programatically-in-c-on-windows
REG ADD "HKLM\System\CurrentControlSet\Control\Session Manager\Environment" /v Path /t REG_EXPAND_SZ /d "%newpath%" /f
CALL python %~dp0envpath_broadcast.py
@REM # %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Documents and Settings\Admin\Dane aplikacji\npm;C:\Program Files\nodejs\;D:\bin;D:\bin\python27
@REM # C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Documents and Settings\Admin\Dane aplikacji\npm;C:\Program Files\nodejs\;D:\bin;D:\bin\python32
@echo.
PAUSE