@echo off if "%1"=="" goto param_error @echo Starting Registry Service start rmiregistry @echo Starting Server '%1' start java %1 goto stop :param_error echo Usage: startServer "ServerClass" echo Where "ServerClass" is the class name of Server :stop