@echo off SET ISVISTA=0 SET DELVISTAFILES="blackbox.bin drmstore.hds v3ks.bla v3ks.sec" SET CURDIR=%CD% IF EXIST "C:\Users\All Users\Application Data\Microsoft\Windows\DRM" SET ISVISTA=1 IF EXIST "C:\Users\All Users\Application Data\Microsoft\Windows\DRM" SET DELPATH="C:\Users\All Users\Application Data\Microsoft\Windows\DRM" IF EXIST "C:\Users\All Users\Application Data\Microsoft\Windows\DRM" GOTO DELDRM IF EXIST "C:\Documents and Settings\All Users\DRM" SET DELPATH="C:\Documents and Settings\All Users\DRM" IF EXIST "C:\Documents and Settings\All Users\DRM" GOTO DELDRM IF EXIST "C:\Windows\All Users\DRM" SET DELPATH="C:\Windows\All Users\DRM" IF EXIST "C:\Windows\All Users\DRM" GOTO DELDRM IF EXIST "C:\Windows\DRM" SET DELPATH="C:\Windows\DRM" IF EXIST "C:\Windows\DRM" GOTO DELDRM ECHO No Digital Rights Management folders found, doing nothing. goto end :DELDRM Echo Delete the detected Digital Rights Management found in: Echo %DELPATH% ? set choice= set /p choice=y or n: if not '%choice%'=='' set choice=%choice:~0,1% if '%choice%'=='y' goto DELIT if '%choice%'=='Y' goto DELIT goto cancel :DELIT if '%ISVISTA%'=='1' CD %DELPATH% if '%ISVISTA%'=='1' DEL /f /q %DELVISTAFILES% if '%ISVISTA%'=='0' RD /s /q %DELPATH% ECHO Please Re-run the Windows Media Player Security Upgrade from the OverDrive Media Console under the 'Tools' menu. Once you have completed that step, attempt to download an OverDrive Audio Book. goto end :cancel echo You have cancelled the execution of this script. goto end :end pause