Quantcast
Channel: Ultimate Boot CD
Viewing all articles
Browse latest Browse all 1577

Re: Potential problem with ubcd2usb

$
0
0
I am still wondering about the location of "exclude.lst", and about adding
Code:
BOOT]
boot.images


to it.

In the meantime, I'd like to suggest changing your first:

Code:
:_gomkbt2
if exist "%a2%\boot\syslinux" goto _gomkbt2a
mkdir "%a2%\boot\syslinux"
:_gomkbt2a
echo UBCD2USB: Making USB KEY bootable...
"%~dp0\syslinux" -f -ma -d boot\syslinux %a2%
if errorlevel 0 goto _gomkbt3
%0 : _error 'syslinux.exe' failed


to:

Code:
:_gomkbt2
if not exist "%a2%\boot\syslinux\nul" mkdir "%a2%\boot\syslinux\"
echo UBCD2USB: Making USB KEY bootable...
"%~dp0\syslinux" -f -ma -d boot\syslinux %a2%
if errorlevel 0 goto _gomkbt3
%0 : _error 'syslinux.exe' failed


The reasons are:
_ It uses "nul", avoiding a potential confusion (in a customized <ubcd_extracted>,) between "
%a2%\boot\syslinux
" file (the Linux-based SYSLINUX installer) and the "
%a2%\boot\syslinux
" *directory*.
_ Avoids the extra "goto _gomkbt2a" (and the ":_gomkbt2a" itself).

My only doubt (because I have not specifically checked it) is whether the errorlevel changes in *any* way between your initial suggestion (using an extra goto) and this new one.

Viewing all articles
Browse latest Browse all 1577

Trending Articles