English | 简体中文
Run any programs in portable mode in Windows.
run install-penv.bat, it will add penv to environment variables.
penvto enter portable environment.penv <commands>to temporarily executes a single command in the penv.penv -u | -use <env name>to use a specific portable environment.penv -h | -helpto show help message.exitto exit portable environment.
penv C:/path/to/msedge.exe
Open Microsoft Edge in portable mode.
penv -u alice C:/path/to/firefox.exe
Open Firefox in portable environment named alice
You can add Environment Variables PATH in penv/path.txt (global) or penv/env/<env name>/path.txt (only this environment).
Use %cd% as the relative path, where %cd% represents the path of penv.bat. For example, if penv.bat is in D:/penv/penv.bat, then %cd%/Python equ to D:/penv/Python.
For such a directory:
penv/
├ env/
├ Python/
│ ├ Python.exe
│ └ ...
├ JAVA/
│ ├ bin/
│ │ ├ java.exe
│ └ ...
├ penv.bat
└ path.txt
You can edit path.txt like this:
%cd%/python
%cd%/JAVA/bin