Let the shortcut execute a batch file (.cmd), that
- Sets the environment variable
- execute the app
- You use "START" to execute the app, this will start the app in another process, but it will copy the environment. You do not wait for the app to finish.
- Now you can exit the batch file.
Should look like this:
@echo off
set path=%path%;C:My Folder
start "Path to my exe"
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…