It is currently Mon Nov 30, 2015 1:41 am

All times are UTC - 8 hours

Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Improved ubcd2usb.cmd
PostPosted: Tue Mar 19, 2013 4:06 am 

Joined: Mon Mar 18, 2013 3:16 pm
Posts: 1

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

Reply with quote  
PostPosted: Thu Mar 21, 2013 8:16 pm 

Joined: Mon Feb 21, 2005 10:59 pm
Posts: 1342
Thanks! Will check it out and incorporate it into the next release.

Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB® Forum Software © phpBB Group