Forum: Bugs
Topic: Bug when adding folders to image ...
started by: REM

Posted by REM on Apr. 27 2007,10:14
Hi
Think I found a nasty bug?

I have made a application using UltraISO to makes DVD images.

If I create a ISO image using commandline:
-udfdvd -volume TESTIMG_1 -output c:\testimg_1.iso
chdir / -newdir AAA chdir AAA -f c:\myfolder
chdir / -newdir BBB chdir BBB -f c:\myfolder
chdir / -newdir CCC chdir CCC -f c:\myfolder
chdir / -newdir DDD chdir DDD -f c:\myfolder
I always end up with a valid image (I extract Image contens and use "Beyond compare" to test).


... And now the buggy way ...

If I create a ISO image using commandline:
-udfdvd -volume TESTIMG_2 -output c:\testimg_2.iso (I know its emty but thats OK)

... and then ad folders using commandline:
-input c:\testimg_2.iso chdir / -newdir AAA chdir AAA -f c:\myfolder
-input c:\testimg_2.iso chdir / -newdir BBB chdir BBB -f c:\myfolder
-input c:\testimg_2.iso chdir / -newdir CCC chdir CCC -f c:\myfolder
-input c:\testimg_2.iso chdir / -newdir DDD chdir DDD -f c:\myfolder

I also end up with a valid image the first time I run UltraISO...

...but if I then repeat this with the next image (still using commandline):
-udfdvd -volume TESTIMG_3 -output c:\testimg_3.iso

... and then ad folders using commandline:
-input c:\testimg_3.iso chdir / -newdir AAA chdir AAA -f c:\myfolder
-input c:\testimg_3.iso chdir / -newdir BBB chdir BBB -f c:\myfolder
-input c:\testimg_3.iso chdir / -newdir CCC chdir CCC -f c:\myfolder
-input c:\testimg_3.iso chdir / -newdir DDD chdir DDD -f c:\myfolder

I end up with a corrupt file in the folder AAA\myfolder! Filenames, size is OK and I can se that data is nearly the same except changes here and there!

I can reproduce this again and again .... files in first folder in first image (AAA\myfolder) is OK, and
files in first folder in next image is corrupted.

Have tried different ways of adding folders with same result...any idears why?

René Mittĺ
State Archive of Denmark

Posted by xoben on Apr. 28 2007,03:25
The command-line should be:
-input c:\testimg_3.iso -chdir / -newdir AAA -chdir /AAA -f c:\myfolder

1) 'chdir' should be '-chdir'
2) always use full path '/AAA' for '-chdir' command

Posted by REM on Apr. 30 2007,05:39

(xoben @ Apr. 28 2007,07:25)
QUOTE
The command-line should be:
-input c:\testimg_3.iso -chdir / -newdir AAA -chdir /AAA -f c:\myfolder

1) 'chdir' should be '-chdir'
2) always use full path '/AAA' for '-chdir' command

Thanks for your reply :-)

Unfortunatly I'm not sure that this will help me because:

1) I use "-chdir" and not "chdir ... I just forgot to do so in my example.

2) I have used "-chdir / -newdir AAA chdir AAA" without any problem (but I will change it to "-chdir / -newdir AAA chdir /AAA" from now on). Do you know as a fact that this is why my files was corrupted?

René Mittĺ