How to Run a BAT Script in the Background

The command format is as follows:

@echo off
  if "%1" == "h" goto begin
  mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
  :begin
c:/frp/frpc.exe -c c:/frp/frpc.ini

The part in red is your own command — please replace it with yours. The rest is for hiding the window.
Attachment:

Leave a Comment

Your email address will not be published.