@ECHO OFF FOR /F %%A IN ('TASKLIST /NH /FI "IMAGENAME EQ Mylio.exe"') DO IF %%A == Mylio.exe GOTO :Warning GOTO :Start :Warning ECHO The Mylio process is still running (perhaps in the background) - Aborted! PAUSE GOTO :EOF :Start ATTRIB -H -S "C:\Program Files (x86)\Actual Window Manager\aimemb.dll" MOVE "C:\Program Files (x86)\Actual Window Manager\aimemb.dll" "C:\Program Files (x86)\Actual Window Manager\0aimemb.dll" ATTRIB -H -S "C:\Program Files (x86)\Actual Window Manager\aimemb64.dll" MOVE "C:\Program Files (x86)\Actual Window Manager\aimemb64.dll" "C:\Program Files (x86)\Actual Window Manager\0aimemb64.dll" START "" "C:\Program Files\Mylio\Mylio.exe" TIMEOUT /T 3 MOVE "C:\Program Files (x86)\Actual Window Manager\0aimemb.dll" "C:\Program Files (x86)\Actual Window Manager\aimemb.dll" ATTRIB +H +S "C:\Program Files (x86)\Actual Window Manager\aimemb.dll" MOVE "C:\Program Files (x86)\Actual Window Manager\0aimemb64.dll" "C:\Program Files (x86)\Actual Window Manager\aimemb64.dll" ATTRIB +H +S "C:\Program Files (x86)\Actual Window Manager\aimemb64.dll" EXIT /B