S tim userprofile to nejde vubec. Skonci to notepadem :D
if "%userprofile%" == "Tereza-ucetni" (
IF NOT EXIST C:\Documents and Settings\%userprofile%\Dokumenty\tsm (
goto start
pause
)
echo. Nejste Tereza-ucetni - zkousim dalsi
)
if "%userprofile%" == "Martinek" (
IF NOT EXIST C:\Documents and Settings\%userprofile%\Dokumenty\tsm (
goto start
pause
)
echo. Nejste Martinek - zkousim dalsi
)
echo Konec
notepad
pause
goto end
:start
taskmgr
pause
goto end