Skip to content

Instantly share code, notes, and snippets.

@ibnu-ja
Last active February 16, 2026 07:20
Show Gist options
  • Select an option

  • Save ibnu-ja/a59575f267462f97d8588c759093ea78 to your computer and use it in GitHub Desktop.

Select an option

Save ibnu-ja/a59575f267462f97d8588c759093ea78 to your computer and use it in GitHub Desktop.
Read executable and run exe
@echo off
for /f "usebackq tokens=*" %%a in (".env") do (
echo %%a | findstr /v /r "^#" > nul
if not errorlevel 1 (
set %%a
)
)
.\app.exe
#!/bin/bash
export $(cat .env | grep -v '^#' | xargs)
./app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment