Major .bin and extraction code overhaul * All .cmd files now have code for searching the for the .bin folder * This starts at the script's parent folder and moves upward * If no .bin folder is found then print an error to the screen * 7z has been replaced with 7za * This is for better handling of x32/x64 usage * This also fixed a few bugs with extracting ProduKey/MailPassView/etc * We no longer require the full power of 7z.exe/7z.dll * (Since wimlib-imagex will probably be used for WIM files soon-ish) * Bugfixes * A few calls of pushd were unsafe (without quotes) * SFC scan no longer closes immediately
39 lines
570 B
Batchfile
39 lines
570 B
Batchfile
@echo off
|
|
|
|
:Flags
|
|
for %%f in (%*) do (
|
|
if /i "%%f" == "/DEBUG" (@echo on)
|
|
)
|
|
|
|
:FindBin
|
|
set bin=
|
|
pushd "%~dp0"
|
|
:FindBinInner
|
|
if exist ".bin" (
|
|
set "bin=%cd%\.bin"
|
|
goto FindBinDone
|
|
)
|
|
if "%~d0\" == "%cd%" (
|
|
goto FindBinDone
|
|
) else (
|
|
cd ..
|
|
)
|
|
goto FindBinInner
|
|
:FindBinDone
|
|
popd
|
|
if not defined bin goto ErrorNoBin
|
|
|
|
:Launch
|
|
call "%bin%\Scripts\Launch.cmd" Program "%bin%\_Drivers" "GeForce Experience.exe" ""
|
|
goto Exit
|
|
|
|
:ErrorNoBin
|
|
color 4e
|
|
echo ".bin" folder not found, aborting script.
|
|
echo.
|
|
echo Press any key to exit...
|
|
pause>nul
|
|
color
|
|
goto Exit
|
|
|
|
:Exit
|