GitHunt
SI

SineStriker/win-launcher

Launch a process with environments.

Win-Launcher

Launch a process with environments.

Build

# Use MinGW
gcc -O2 main.c -o win-launcher.exe -lshell32

# Use MSVC
cl /O2 /EHsc main.c /Fewin-launcher.exe /link shell32.lib

You can change the file name of the launcher.

Usage

Create a .conf file with base name same as the launcher, e.g. win-launcher.conf.

Add $CMD and other environment definitions.

# win-launcher.conf

# command
$CMD=foo.exe

# env
x=y

If $CMD is a relative path, the launch will search it at its executable directory.

Example: Set HTTP/HTTPS proxy for Codex

Create configuration file like this:

$CMD=C:/path/to/codex.exe
http_proxy=127.0.0.1:7890
https_proxy=127.0.0.1:7890

And then set chatgpt.cliExecutable in VSCode user settings.

{
    "chatgpt.cliExecutable": "C:/path/to/win-launcher.exe"
}

Languages

C100.0%

Contributors

Created January 9, 2026
Updated January 9, 2026
SineStriker/win-launcher | GitHunt