@echo off pushd %PROGRAMFILES% if exist SumatraPDF ( cd SumatraPDF if exist SumatraPDF.exe ren SumatraPDF.exe SumatraPDF.exe.tmp ) popd if .%1.==.-c. goto CCC cmd /k call setenvironment.bat goto END :CCC cmd /k call setenvironment.bat -c :END pushd %SystemRoot%\temp if exist texmf rd /s/q texmf popd pushd %PROGRAMFILES% if exist SumatraPDF ( cd SumatraPDF if exist SumatraPDF.exe.tmp ren SumatraPDF.exe.tmp SumatraPDF.exe ) popd