Skip to content
This repository was archived by the owner on Dec 10, 2018. It is now read-only.

Commit 35ac8f4

Browse files
committed
Clean Up Spaces
1 parent c7188b8 commit 35ac8f4

1 file changed

Lines changed: 9 additions & 23 deletions

File tree

decrypt.bat

Lines changed: 9 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ cscript /nologo /B /E:VBS HexChar.vbs < "cursorpos.hex" > "cursorpos.exe"
5959
del cursorpos.hex
6060
del hexchar.vbs
6161

62-
6362
:Main
6463
if "%~1"=="/help" goto help
6564
:: UPDATE SYSTEM
@@ -269,7 +268,6 @@ set "Scheme=%~6"
269268
set "Key=%~7"
270269
if [%Output:~-1%]==[\] set "OUT=%Output:~0,-1%"
271270

272-
273271
set counter=0
274272
echo>%temp%\getfiles.vbs Set objFS=CreateObject("Scripting.FileSystemObject")
275273
echo>>%temp%\getfiles.vbs Set objArgs = WScript.Arguments
@@ -284,22 +282,24 @@ for /f "delims=*" %%f in ('cscript //nologo %temp%\getfiles.vbs "%ESD%"') do (
284282
)
285283
del>nul %temp%\getfiles.vbs
286284

287-
288285
if not "!MODE!"=="WIM" if not "!MODE!"=="ESD" call :Exception MODE
289286
for /f "tokens=2 delims==" %%f in ('set ESD[') do (
290287
if not exist "!ESD!" call :Exception ESD_Not_Found
291288
)
292289
if not exist "!Output!" mkdir "!Output!"
293290
if not exist "!Output!" call :Exception Output_Not_Valid
294291

295-
296292
set "wimlib=%~dps0bin\wimlib-imagex.exe"
297293
if %PROCESSOR_ARCHITECTURE%==AMD64 set "wimlib=%~dps0bin\bin64\wimlib-imagex.exe"
298294
if not exist "!wimlib!" (
299295
call :Exception WIMLIB_Notfound
300296
)
301297

302298
for /f "tokens=2 delims==" %%f in ('set ESD[') do (
299+
Echo [Info] ESD Being processed currently :
300+
Echo.
301+
Echo %%~nxf
302+
Echo.
303303
Echo [Info] Checking the current state of the provided ESD File...
304304
"!wimlib!" info "%%f" 4 1>nul 2>nul
305305
IF !ERRORLEVEL! EQU 74 call :DecryptManager "%%f" "!Backup!" "!Key!"
@@ -315,7 +315,6 @@ Echo [Info] Label: !DVDLABEL!
315315
Echo.
316316
echo [Info] Creating Setup Media Layout...
317317

318-
319318
IF EXIST ISOFOLDER\ rmdir /s /q ISOFOLDER\
320319
mkdir ISOFOLDER
321320
echo.
@@ -394,7 +393,6 @@ if "!DeleteESD!"=="YES" (
394393
call :progress 100
395394
exit /b
396395

397-
398396
:DecryptManager <ESD> <Backup(YES|NO)> {key}
399397
set "ESD_=%~1"
400398
set "Backup_=%~2"
@@ -738,29 +736,18 @@ if %~1==ESD_Decrypt (
738736
Echo.
739737
type "%temp%\esddecrypt.log"
740738
)
741-
if %~1==ESD_Damaged (
742-
Echo The specified ESD File is damaged or not a Valid ESD File.
743-
)
744-
if %~1==WIMLIB_Notfound (
745-
Echo %PROCESSOR_ARCHITECTURE% wimlib-imagex.exe not found
746-
)
747-
if %~1==Apply (
748-
Echo Critical Errors were found after apply.
749-
)
750-
if %~1==Export (
751-
Echo Critical Errors were found after export.
752-
)
753-
if %~1==ISO (
754-
Echo Critical Errors were found during ISO creation.
755-
)
739+
if %~1==ESD_Damaged Echo The specified ESD File is damaged or not a Valid ESD File.
740+
if %~1==WIMLIB_Notfound Echo %PROCESSOR_ARCHITECTURE% wimlib-imagex.exe not found
741+
if %~1==Apply Echo Critical Errors were found after apply.
742+
if %~1==Export Echo Critical Errors were found after export.
743+
if %~1==ISO Echo Critical Errors were found during ISO creation.
756744
Echo.
757745
goto exit
758746

759747
:exit
760748
:: Clean up tasks here
761749
exit /b
762750

763-
764751
:GetCoords Cols= Lines=
765752
set /A "%1=%ERRORLEVEL%&0xFFFF, %2=(%ERRORLEVEL%>>16)&0xFFFF"
766753
exit /B
@@ -801,7 +788,6 @@ cursorpos !Cols! !Lines!
801788
ENDLOCAL
802789
exit /b
803790

804-
805791
:: UPDATE SYSTEM
806792
:updatesystem
807793
if exist "%~1\%~nx0" (

0 commit comments

Comments
 (0)