Skip to content

Instantly share code, notes, and snippets.

@gcch
Last active May 21, 2021 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gcch/ab5cd446385c4df80f6d5a9a748755a0 to your computer and use it in GitHub Desktop.
Save gcch/ab5cd446385c4df80f6d5a9a748755a0 to your computer and use it in GitHub Desktop.
@echo off
::
:: FALterm Launcher
::
:: Copyright (c) 2021 tag. All rights reserved.
::
cd %~dp0
set "INTERFACE=1"
for /f "usebackq" %%a in (`tasklist ^| find "FALterm" /c`) do (
set "FLG=%%a"
)
if "%FLG%"=="0" ( goto RUN ) else ( goto END )
:RUN
echo Start FALterm.exe
start "" "cmd /c "echo %INTERFACE% ^| FALterm.exe""
:END
timeout 3 >nul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment