🔒 Closed Reinsert new E×ρréšš VPN Key without Reinstalling

Status
Not open for further replies.
Hey I just made simple batch script to automate everything :)
It will delete the .bin files from E×ρréššVPN program data and restart the service.
Also this will automatically run as admin (Just in case you forgot)
You do not have permission to view the full content of this post. Log in or register now.

eto yung code niyan. (Pero wag to gamitin kasi auto format yung E×ρréšš vpn captions =D )

Rich (BB code):
@echo off
:-------------------------------------
REM  --> Check for permissions
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"

REM --> If error flag set, we do not have admin.
if '%errorlevel%' NEQ '0' (
    echo Requesting administrative privileges...
    goto UACPrompt
) else ( goto gotAdmin )

:UACPrompt
    set vbs="%temp%\getadmin.vbs"
    REM create VBS script
    echo Set UAC = CreateObject^("Shell.Application"^) > %vbs%
    set params = %*:"=""
    echo UAC.ShellExecute "cmd.exe", "/c %~s0 %params%", "", "runas", 1 >> %vbs%
  
    %vbs%
    del %vbs%
    exit /B

:gotAdmin
    pushd "%CD%"
    CD /D "%~dp0"
:--------------------------------------
echo.
:start
set /p WARN="WARNING. After you press enter, your ExpresVPN Data will be deleted"
echo Deleting .bin files from E×ρréššVPN Programdata Folder
DEL C:\ProgramData\E×ρréššVPN\v4\data\*.bin /S /Q
echo.
rem Restart E×ρréšš vpn service so we can enter new key again without re-installing the app
net stop "E×ρréššVPNService" /y
net start "E×ρréššVPNService"
echo.
goto start
 
Status
Not open for further replies.

About this Thread

  • 10
    Replies
  • 172
    Views
  • 8
    Participants
Last reply from:
zackmark29

Online now

Members online
1,137
Guests online
2,308
Total visitors
3,445

Forum statistics

Threads
2,298,281
Posts
29,122,068
Members
1,202,328
Latest member
sangrett
Back
Top