server.bat close after open

Hello, i’m trying to make it so that this window closes after srcds opens.

How can I do this, my guess is I need a timer?

Code:


@echo off
cls
title Server Starter
:srcds
start /wait srcds.exe -game garrysmod
goto srcds

Any help thanks.

start srcds.exe -game garrysmod

remove the ‘/wait’, ‘:srcds’ and the ‘goto srcds’