@echo off
 
:: Check privileges 
net file 1>NUL 2>NUL
if not '%errorlevel%' == '0' (
    powershell Start-Process -FilePath "%0" -ArgumentList "%cd%" -verb runas >NUL 2>&1
    exit /b
)

cd /d %1

@echo on
CLS

:: Register service
TeraCopyService.exe /i 

:: Register copy handler
regsvr32 TeraCopy.dll

:: Register context menu dll
regsvr32 Context.dll

pause
