Code: |
@echo off
:: BatchGotAdmin :------------------------------------- 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 echo Set UAC = CreateObject^("Shell.Application"^) > "%temp%\getadmin.vbs" echo UAC.ShellExecute "%~s0", "", "", "runas", 1 >> "%temp%\getadmin.vbs" "%temp%\getadmin.vbs" exit /B :gotAdmin if not exist "C:\Program Files (x86)\SSI\Close Combat Invasion Normandy\Videos" mkdir "C:\Program Files (x86)\SSI\Close Combat Invasion Normandy\Videos" REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Mattel Interactive\Close Combat\5.00" /v "InstalledTo" /T REG_SZ /d "C:\Program Files (x86)\SSI\Close Combat Invasion Normandy" /f |
mooxe wrote (View Post): | ||
BATCH file that creates a videos folder and fixes registry "InstalledTo" path. Now if only I can just get this into the 5.01a patch to make it all in one....
|
BETA_CC5_Patch_v5.01a.zip | |||
Description: |
|
Download |
|
Filename: | BETA_CC5_Patch_v5.01a.zip | ||
Filesize: | 1.02 MB | ||
Downloaded: | 264 Time(s) |
output generated using printer-friendly topic mod. All times are GMT