@echo off
SETLOCAL enabledelayedexpansion
SET LAUNCHPAD_SHIFTED_ARGS=
SET LAUNCHPAD_SKIPPED_ARG_1=
FOR %%A IN (%*) DO (
	if {"!LAUNCHPAD_SKIPPED_ARG_1!"} == {""} (
		set LAUNCHPAD_SKIPPED_ARG_1=true
	) else (
		set LAUNCHPAD_SHIFTED_ARGS=!LAUNCHPAD_SHIFTED_ARGS! %%A
	)
)
pushd %1
start /wait "" !LAUNCHPAD_SHIFTED_ARGS!
exit %errorlevel%