@Echo Off IF {%1}=={} ECHO Usage: %0 [controller] & GOTO :Eof IF NOT EXIST .\wcclient.exe ECHO Must be run from the directory where wcclient.exe is located. & GOTO :Eof :Loop CLS ECHO ===== Attempting to connect to %1 .\wcclient %1 GOTO :Loop