Author Topic: Easy to use Cdimage tool  (Read 1651 times)

gosh

  • Guest
Easy to use Cdimage tool
« on: December 24, 2002, 02:03:02 AM »
Cdimage.exe is a tool that allows you to make 3in1 cd\'s and such.  To make my cd\'s i use a batch file that runs the command for cdimage.  I\'ve always wanted some easy to use wizard that i could give to my friends to make there own 3in1 cd.  On the 3in1 cd\'s i make, i include my batch file and instructions on how to make a 3in1 cd, however it\'s not user friendly.

Last weekend i made a batch file that will make a 3in1 iso image with no experience necessary.  This is great so you can have your friends run this batch file and simply answer the questions.

In the following batch file im going to assume a couple of things:

-cdimage.exe is in the same folder/directory as this batch file
-you will use this batch file to make a xp cd, so the date won\'t matter
-you are using the old cd menu bart made, with loader.bin, and not the new boot scripter.

this batch file will also make a log file!

-gosh

---------copy everything below to xpsp1.bat-----------------------


@ECHO OFF
@echo.
@echo.
ECHO                CDImage Batch Creation Tool
ECHO                 Last updated Dec 21, 2002
ECHO                            by gosh
@echo.
@echo.
ECHO This batch file will make a bootable ISO image to burn to cd.
@echo.
ECHO You should have done the following:
@echo. 1.  Copied this cd to a partition with a lot of space
@echo. 2.  Modified the flat you made
@echo. 3.  Run this batch file
@echo.
ECHO Once you are done, burn the image to cd using Nero or Easy CD Creator
@echo.
@echo.
pause
@echo off
cls
@echo.
@echo.
setlocal
:loop
::undefine the %Source% environment variable
set Source=
set /p Source=Type the full path to your local source.  For example, if you copied the cd to drive F into a folder called FLAT, you would type f:FLAT.  This is not case sensitive. When finished, press Enter.                      
if {%Source%}=={} goto :end
@echo.
if not exist %Source% @echo %Source% does NOT exist.&goto :loop
cls
@echo.
ECHO Saved Source as %Source%
@echo.
@echo.
ECHO Note!
@echo.
ECHO Please make sure this file exists or the cd won\'t boot!  %Source%loader.bin
@echo.
@echo.
setlocal
:loop2
::undefine the %Destination% environment variable
set Destination=
set /p Destination=Next, type the full path to where you want to save the image, including the image name.  For example, if you wanted to save the image to drive G and call it image.iso, you would type G:image.iso.  This is not case sensitive.  When finished, press Enter.                      
if {%Destination%}=={} goto :end
@echo.
cls
@echo.
ECHO Saved Source as %Source%
ECHO Saved Destination as %Destination%
@echo.
@echo.
ECHO Note!
@echo.
ECHO Please make sure the destination listed above has enough free space or this will fail!  I recommend having twice as much free space as the source.  For example if your source is 2 gigs, you should have 4 gigs free on the destination folder.
ECHO Obviously make sure you have permissions to write to the destination folder.
@echo.
@echo.
setlocal
:loop3
::undefine the %CDLabel% environment variable
set CDLabel=
set /p CDLabel=Lastly, please type a label for the cd image.  If you include spaces use quotation marks. When finished, press Enter.                      
if {%CDLabel%}=={} goto :end
@echo.
cls
@echo.
ECHO Saved Source as %Source%
ECHO Saved Destination as %Destination%
ECHO Saved CDLabel as %CDLabel%
ECHO Log file will be saved to %windir%cdimage.log
@echo.
@echo.
:end
endlocal
ECHO  Compiling source from %Source% to %Destination%
@echo.
ECHO  Please wait, this may take several minutes.
cdimage -l%CDLabel% -t08/23/2001,09:00:00 -b%Source%loader.bin -h -n -m -o %Source% %Destination% >%windir%cdimage.log 2>&1


--------copy everything above---------------