@echo off net session >nul 2>&1 if %errorLevel% neq 0 ( echo Requesting admin privileges... powershell -Command "Start-Process cmd -ArgumentList '/c \"%~f0\"' -Verb RunAs" exit /b ) echo Running robocopy sync as Administrator... echo. robocopy "D:\Games\osu!\skins" "D:\git\gay\Skins" /MIR /COPYALL /SEC /B /XJ /DCOPY:T /J echo Robocopy sync completed. pause