You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,24 +8,28 @@ Forwarder that allows you to change environment variables before starting a proc
8
8
- Make a folder "EnvForwarder" where "EnvForwarder.exe" is located.
9
9
- 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)
10
10
- 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))
12
12
- Start the EnvForwarder executable instead of your application executable.
13
13
- Profit
14
14
15
15
Logs are stored in EnvForwarder\logs.log where EnvForwarder is located.
16
16
17
-
## RULES SYNTAX
17
+
## Rules Syntax
18
18
19
19
The syntax of the environment variables rules in "rules.txt" is :
20
-
> ENVIRONMENT_VARIABLE OPERATION REGEXP
20
+
```
21
+
ENVIRONMENT_VARIABLE OPERATION REGEXP
22
+
```
21
23
22
24
Each rule is on a line. There are two operations "ADD" and "REMOVE". You can do multiple operations on a single environment variable.
23
25
For the regexp syntax check https://cplusplus.com/reference/regex/ECMAScript/
24
26
25
27
Example of rules removing python from the environment variables to use another version :
0 commit comments