Victor Chew wrote:
Methinks "run.cmd" should look like this:
Quote:
@echo off
call ubcd2iso.cmd
cmd.exe /k cd "%~p0"
since the idea is to want the Command Prompt to remain opened after the "cd" command?
I found on the web that you could use
/c or
/k (/c looks nicer to me, but it was probably wrong). I don't have windows installed myself, so I couldn't test it myself.
Wouldn't it be better to include the line
Code:
cmd.exe [b]/k[/b] cd "%~p0"
into ubcd2iso.cmd itself (see my post above)?
Victor Chew wrote:
The "@pause" doesn't seem to be necessary, since the Command Prompt is sitting there already, so the user can immediately type in the desired command.
I didn't include it originally because I thought that it wasn't nessary but as702 tested it and says that it didn't work correctly without it. Probalby because the
/c command was wrong!?
Victor Chew wrote:
@as702: Correct me if I am wrong. I think your intention is to suppress any error messages from the "del" command? But the error message is printed to stderr, so one needs to use a "2>" instead of the usual ">". Also, a single "NUL" symbol should suffice.
I chose ">" instead of "2>" because I didn't want to show the user that the isolinux/boot.cat file will be deleted (not very interesting to display and it maybe can frighten users when they see that the script deletes files without there permission). as702 told me that redirecting the output to NUL doesn't work if the current directory is readonly, at least in dos this is the case. Redirecting to %tmp%/NULL will always work.
Victor Chew wrote:
@Icecube: Contrary to my earlier PM to you, I think with this enhancement, we shouldn't need the "Step-by-step guide" anymore, so I have taken it out.
I will also be removing the "-Y" param from both scripts, since I think that is no longer applicable.
This is good thing.
I didn't download the new UBCD5 beta but have you included the
SET VOLUME_ID="UBCD500" in the script, so that you only have to edit this line to change the label of the CD instead of changing it in the mkisofs command?