This always makes sure the UBCD installs onto a FAT32 partition (which would likely resolve this user's issue). Do you think this should be changed in UBCD?
FAT16 is better for small USB sticks (<2GB ==> 2 GB is FAT16 limit), so setting FAT32 by default is probably not that great.
I also added a -f in the syslinux command (found that it works better):
"%~dp0\syslinux" -ma -d boot\syslinux %a2% -f
Did you get problems a lot when you don't use "force"?
Also what are the SETLOCAL (line 17), UBCD (line 82), and ENDLOCAL (line 93) commands added to the script?
I don't know much of batch scripting (Victor does this), so the following may not be completely accurate.
I think SETLOCAL and ENDLOCAL define a region in the script. In this region all new variables that are set are only available in this section (are not globally created).
'UBCD' should be on line 81. Good find!
echo Requires: W2K/XP/W2K3/Vista/W2K8/W7 and an (optionally extracted) UBCD
I always install UBCD manually (running syslinux installer and copying the files from the ISO, without formatting). That's why I didn't write a linux script to install UBCD on an USB stick, but wrote instructions instead.
Download Ultimate Boot CD v5.0
Use Parted Magic
for handling all partitioning task: http://partedmagic.com/