ECHO OFF if "%1"=="" goto error check | showpath %1 goto end : error ECHO usage : sp < target number> :end