Guest User

Untitled

a guest
Mar 1st, 2018
9,032
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @set @x=0; /*
  2. @echo off
  3. if "%1"=="" cscript.exe //nologo //e:jscript "%~f0"& Exit
  4. chdir /d "%~dp0"
  5. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lockheed Martin"
  6. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lockheed Martin\Prepar3D v3"
  7. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lockheed Martin\Prepar3D v3" /f /v "License" /t REG_SZ /d "Professional Plus"
  8. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lockheed Martin\Prepar3D v3" /f /v "SetupPath" /t REG_SZ /d "%cd%"
  9. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lockheed Martin\Prepar3D v3 Content" /f /v "SetupPath" /t REG_SZ /d "%cd%"
  10. REG ADD "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Lockheed Martin\Prepar3D v3 Scenery" /f /v "SetupPath" /t REG_SZ /d "%cd%"
  11. mklink /j "%USERPROFILE%\Documents\Prepar3D v3 Files" "%USERPROFILE%\Documents\Prepar3D v4 Files"
  12. mklink /j "%USERPROFILE%\Documents\Prepar3D v3 Add-ons" "%USERPROFILE%\Documents\Prepar3D v4 Add-ons"
  13. mklink /j "%APPDATA%\Lockheed Martin\Prepar3D v3" "%APPDATA%\Lockheed Martin\Prepar3D v4"
  14. mklink /j "%LOCALAPPDATA%\Lockheed Martin\Prepar3D v3" "%LOCALAPPDATA%\Lockheed Martin\Prepar3D v4"
  15. mklink /j "%PROGRAMDATA%\Lockheed Martin\Prepar3D v3" "%PROGRAMDATA%\Lockheed Martin\Prepar3D v4"
  16. exit
  17. */new ActiveXObject('Shell.Application').ShellExecute (WScript.ScriptFullName,'Admin','','runas',1);
RAW Paste Data