Improved ubcd2usb.cmd

Post your suggestions here if there are new features or applications that you would like added to the Ultimate Boot CD.

Moderators: Icecube, StopSpazzing

Post Reply
Message
Author
Proactive Services
Posts: 1
Joined: Mon Mar 18, 2013 3:16 pm

Improved ubcd2usb.cmd

#1 Post by Proactive Services » Tue Mar 19, 2013 4:06 am

Hi,

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

Victor Chew
Posts: 1368
Joined: Mon Feb 21, 2005 10:59 pm
Contact:

Re: Improved ubcd2usb.cmd

#2 Post by Victor Chew » Thu Mar 21, 2013 8:16 pm

Thanks! Will check it out and incorporate it into the next release.

Post Reply