abbodi1406 / BatUtil

Collection of batch scripts utilities for Windows
993 stars 241 forks source link

File not found #1

Closed Owned67 closed 4 years ago

Owned67 commented 5 years ago

`

if exist "F:\W10UItemp" ( echo. echo ============================================================
echo Removing temporary extracted files...
echo ============================================================
echo. rmdir /s /q "F:\W10UItemp"
)

setlocal enableextensions

setLocal EnableDelayedExpansion

set directcab=0

set dvd=0

set wim=0

set offline=0

set online=0

set _wim=0

set copytarget=0

set imgcount=0

if exist ".wim" (for /F "delims=" %i in ('dir /b /a:-d .wim') do (call set /a _wim+=1 ) )

if "F:\DISMTOOL\DVD10" == "" if 0 == 1 (for %i in ("*.wim") do set "target=%~fi" & set "targetname=%i" )

if "F:\DISMTOOL\DVD10" == "" set "target=C:"

if "0" == "\" set "target=F:\DISMTOOL\DVD1"

if /I "F:\DISMTOOL\DVD10" == "C:" goto :check

echo F:\DISMTOOL\DVD10 | findstr /E /I ".wim"

if 1 == 0 ( set wim=1
for /F %i in ('dir /b "F:\DISMTOOL\DVD10"') do set "targetname=%i" ) else ( if exist "F:\DISMTOOL\DVD10\sources\boot.wim" set dvd=1
if exist "F:\DISMTOOL\DVD10\Windows\regedit.exe" set offline=1 )

if 0 == 0 if 0 == 0 if 1 == 0 (set "target=C:" & goto :check )

if 0 == 1 ( dir /b "F:\DISMTOOL\DVD10\Windows\servicing\Version\10.0." || (set "MESSAGE=Detected target offline image is not Windows 10" & goto :E_Target )
for /F "tokens=3 delims=." %i in ('dir /b "F:\DISMTOOL\DVD10\Windows\servicing\Version\10.0.
"') do set build=%i
set "mountdir=F:\DISMTOOL\DVD10"
if exist "F:\DISMTOOL\DVD10\Windows\SysWOW64*" (set arch=x64 ) else (set arch=x86 ) )

if 1 == 1 ( echo. echo ============================================================
echo Please wait...
echo ============================================================
dir /b /s /adr "F:\DISMTOOL\DVD10" && set copytarget=1
dism /english /get-wiminfo /wimfile:"F:\DISMTOOL\DVD10\sources\install.wim" /index:1 | find /i "Version : 10.0" || (set "MESSAGE=Detected install.wim version is not Windows 10" & goto :E_Target )
for /F "tokens=4 delims=:. " %i in ('dism /english /get-wiminfo /wimfile:"F:\DISMTOOL\DVD10\sources\install.wim" /index:1 | find /i "Version :"') do set build=%i
for /F "tokens=2 delims=: " %i in ('dism /english /get-wiminfo /wimfile:"F:\DISMTOOL\DVD10\sources\install.wim" /index:1 | find /i "Architecture"') do set arch=%i
for /F "tokens=2 delims=: " %i in ('dism /english /get-wiminfo /wimfile:"F:\DISMTOOL\DVD10\sources\install.wim" | findstr "Index"') do set imgcount=%i
for /F "tokens=2 delims=: " %i in ('dism /english /get-wiminfo /wimfile:"F:\DISMTOOL\DVD10\sources\boot.wim" | findstr "Index"') do set bootimg=%i
for /L %i in (1 1 !imgcount!) do (for /F "tokens=1 delims=: " %a in ('dism /english /get-wiminfo /wimfile:"F:\DISMTOOL\DVD10\sources\install.wim" /index:%i | findstr /b /c:"Name"') do set name%i="%b" )
set "indices=
" )

============================================================ Please wait...

Fichier introuvable Version : 10.0.16299

Batch file already runing at this time....`