[4.7] make_bootable.bat


Recommended Posts

make_bootable.bat depends on OS language. For example, this script fails on Win7 with russian UI.

 

Make Bootable
-------------
 ? ???? G ?? ?? UNRAID
?? ?? ?: 6A6F-018B

Error: volume label must be UNRAID
 ????? ???? ?? ???? . . .

 

if "%label%"=="UNRAID" goto valid ----> let's print %label% before if:

Make Bootable
-------------
 ? ???? G ?? ?? UNRAID
?? ?? ?: 6A6F-018B

?? UNRAID
Error: volume label must be UNRAID
 ????? ???? ?? ???? . . .

 

"????? UNRAID" != "UNRAID". Fix (for russian UI):

for /f "tokens=1-6*" %%1 in ('vol %~d0') do (
 set label=%%7
 goto checkit
)

Make Bootable
-------------
 ? ???? G ?? ?? UNRAID
?? ?? ?: 6A6F-018B

G:\syslinux -ma G:
 ????? ???? ?? ???? . . .

 

fixed_make_bootable.bat.zip

Link to comment

Do you know how to make a bootable without using the BAT file?

I've already fixed this script for my language. Looks like it should be rewritten to support non-english Windows too.

Perhaps you can zip your modified version and attach it to a post to help someone else who does not have your advanced level of skills at batch programming?
Link to comment
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.