Skip to content

Commit 7b9b358

Browse files
committed
fix readme
1 parent dbbd805 commit 7b9b358

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

README.md

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,28 @@ Forwarder that allows you to change environment variables before starting a proc
88
- Make a folder "EnvForwarder" where "EnvForwarder.exe" is located.
99
- Inside this folder, create a file "path.txt" containing the path to the application you want to change the environment variables (example: "c:\Apps\myapp.exe" without the quotes)
1010
- Replace the calls to your application with this one (see the helper folder for an example) **OR** rename your application to something else and EnvForwarder.exe to your original application name (make sure to fix the path in path.txt in this case).
11-
- Add your rules by adding a file "rules.txt" inside the "EnvForwarder" folder. (check [RULES SYNTAX](## RULES SYNTAX))
11+
- Add your rules by adding a file "rules.txt" inside the "EnvForwarder" folder. (check [Rules Syntax](#rules-syntax))
1212
- Start the EnvForwarder executable instead of your application executable.
1313
- Profit
1414

1515
Logs are stored in EnvForwarder\logs.log where EnvForwarder is located.
1616

17-
## RULES SYNTAX
17+
## Rules Syntax
1818

1919
The syntax of the environment variables rules in "rules.txt" is :
20-
> ENVIRONMENT_VARIABLE OPERATION REGEXP
20+
```
21+
ENVIRONMENT_VARIABLE OPERATION REGEXP
22+
```
2123

2224
Each rule is on a line. There are two operations "ADD" and "REMOVE". You can do multiple operations on a single environment variable.
2325
For the regexp syntax check https://cplusplus.com/reference/regex/ECMAScript/
2426

2527
Example of rules removing python from the environment variables to use another version :
26-
> PATH REMOVE ;?[^;]*\\AppData\\Local\\Programs\\Python\\[^;]*
27-
> PATH ADD C:\\MyApps\\Python310
28-
> PATH ADD C:\\MyApps\\Python310\\Scripts
28+
```
29+
PATH REMOVE ;?[^;]*\\AppData\\Local\\Programs\\Python\\[^;]*
30+
PATH ADD C:\\MyApps\\Python310
31+
PATH ADD C:\\MyApps\\Python310\\Scripts
32+
```
2933

3034
## License
3135

0 commit comments

Comments
 (0)