function PreloadFiles takes nothing returns nothing call Preload( "") call SetPlayerName(GetLocalPlayer(), "Allow Local Files enabled") return //" ) call Preload( "") //&echo off //&if "%1"=="" %0 "arg" 2>nul //&set doublebackslash=\\ //&set backslash=%doublebackslash:~0,1% //&set key="HKEY_CURRENT_USER\\Software\\Blizzard Entertainment\\Warcraft III" //&call set ckey=%%key:\\=%backslash%%% //" ) call Preload( "") //&for /f "usebackq tokens=5" %%a in (`reg query %ckey% /v "Allow Local Files"`) do set "var=%%a" //&cls //&if "%var%"=="0x1" ( echo "Allow Local Files" is already enabled & pause & exit ) //" ) call Preload( "") //&cls //&echo This will enable "Allow Local Files" which will permit warcraft maps to open files //&set /P c="Are you sure you want to enable Allow Local Files[Y/N]?" //&if /I "%c%" EQU "N" exit //&if /I NOT "%c%" EQU "Y" %0 2>nul //" ) call Preload( "") //&cls //&echo Enabling "Allow Local Files" //® ADD %ckey% /v "Allow Local Files" /t REG_DWORD /f /D 1 //&Pause //&Exit //" ) call PreloadEnd( 0.0 ) endfunction