I've used UBCD more times than I can recall and it has helped me a great deal. In my travels I've used Windows batch a lot and have honed my skills with it, something that I'd like to give back to UBCD by way of thanks.
I noticed that the ubcd2usb.cmd could be improved so spent a little while on it and have made the following changes:
Improved variable detection and handling of quotes.
Used clearer variable and label names.
Improved error detection and added a retry option to applicable areas.
Now checks that source UBCD drive/directory does look like it is UBCD.
Worked around syslinux's errorlevel being 0 even if it gets "access denied".
Made variable checking case-insensitive and changed command switches to make them clearer (I find using capital letters or full switches improves readability).
Ensured variables that are paths are always enclosed in quotes.
Added support for standard help switches (/? /h /help etc.)
Added more comments to aid future editors in understanding code.
I've tested it and it works, as does the error checking. So much quicker than using CDs!Updated ubcd2usb