Page 1 of 1 1
Topic Options
#125508 - 2004-08-24 03:27 PM Scripted creation of CD.
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
This looks a bit tricky, but has anyone else played with automating the transfer of files from the staging area to burn on CD with Windows XP?

I need to automate the backup of a set of files to CD. I'd rather use the built-ins (there is an ICDBurn shell inteface), but I'm also open to suggestions.

Top
#125509 - 2004-08-24 04:07 PM Re: Scripted creation of CD.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
hmm...
can't ntbackup write to CD if it writable?
_________________________
!

download KiXnet

Top
#125510 - 2004-08-24 04:20 PM Re: Scripted creation of CD.
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Quote:

hmm...
can't ntbackup write to CD if it writable?




No.

There are a couple of MS references if you need them, but basically the media is always labelled read-only.

This is "by design".

I believe that W2k3 server *does* allow backups to CD media.

Top
#125511 - 2004-08-24 04:23 PM Re: Scripted creation of CD.
Raceeend Offline
Starting to like KiXtart

Registered: 2002-05-09
Posts: 129
Loc: The Netherlands
CDRWin might be able to help you. They just have released a ms-dos version of there burning software.
_________________________
regards, Martijn

Top
#125512 - 2004-08-24 05:03 PM Re: Scripted creation of CD.
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
Quote:

I believe that W2k3 server *does* allow backups to CD media.





Just to confirm WK2003 doesnt allow this. You must first copy the back up file to a hard drive then copy it to CD.
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#125513 - 2004-08-24 05:08 PM Re: Scripted creation of CD.
AzzerShaw Offline
Seasoned Scripter
****

Registered: 2003-02-20
Posts: 510
Loc: Cheltenham, England
Found an article to support this

Backup does not support CDR
_________________________
If at first you don't succeed, try again. Then quit. There's no use being a damn fool about it. - W.C Fields

Top
#125514 - 2004-08-24 05:10 PM Re: Scripted creation of CD.
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
And here is a more definitive explanation...
http://support.microsoft.com/default.aspx?scid=kb;en-us;262006

Note, early W2K documentation incorrectly stated that ntbackup could write to CD.

Top
#125515 - 2004-08-24 07:32 PM Re: Scripted creation of CD.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
was looking into this as it seems like a nice thing to have.
best resource I found quickly was:
http://forums.multiplay.co.uk/showthread.php?threadid=14904

basically, if you don't want cygwin, the next best thing is free commandline tools by goldenHawk.
_________________________
!

download KiXnet

Top
#125516 - 2004-08-24 08:25 PM Re: Scripted creation of CD.
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Well if these tools from GoldenHawk don't work for you then let me know. I think I might still have an old DOS program from Microsoft that allows you to burn CDs from a command prompt. I used to burn some Server CDs that way a long time ago. Now I use Nero for most burning needs.

http://www.goldenhawk.com/freeware.htm

http://www.goldenhawk.com/dos.htm



Top
#125517 - 2004-08-25 09:58 AM Re: Scripted creation of CD.
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Thanks for all the replys.

Semi-automating the process of writing via the XP shell built-in can be done with VB, but the object ain't that easy to get hold of so I don't think I'll bother with the pain of trying to get it to work in KiXtart.

For those that are interested, here is an example of how to do it in VB:
http://www.vbaccelerator.com/home/VB/Code/Libraries/Writing_CDs/Simple_CD_Burn/article.asp

I've handed the problem back to the dev staff, as their app is VB based so they should be able to integrate it.

I'll have a look a the free tool links as well, once I get hold of a working cd-writer.

Top
#125518 - 2004-08-25 10:04 AM Re: Scripted creation of CD.
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Quote:

was looking into this as it seems like a nice thing to have.
best resource I found quickly was:
http://forums.multiplay.co.uk/showthread.php?threadid=14904




Shame, can't view this link as it's categorised (and blocked) by WebSense as a "Games" site

Although I use Cygwin on my machine (mostly for the X-server) it's not appropriate to install on end-users machines - too many support issues.

I assume that this thread references the Linux CD tools - not a bad idea.

I'll see if I can get hold of the source and cross-compile onto NT, if there is not already a native version.

Top
#125519 - 2004-08-25 10:51 AM Re: Scripted creation of CD.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ja, linux tools like cdrecord.
_________________________
!

download KiXnet

Top
#125520 - 2004-08-25 10:56 AM Re: Scripted creation of CD.
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
richie, did you look at the hawk-site?
something like:
Quote:


COPY2CD.EXE - Direct to CDROM File Copier

COPY2CD will copy the files from one or more directories on your harddrive directly to a CDROM recorder without builidng an ISO9660 image file first. (the image is built "on the fly" and requires no disk space). This program makes copying files to CDROM as easy as copying files to a harddrive with the DOS "XCOPY" command.





sounds pretty good.
_________________________
!

download KiXnet

Top
#125521 - 2004-10-21 04:22 AM Re: Scripted creation of CD.
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Here is a little more information/program for such.

http://isorecorder.alexfeinman.com/isorecorder.htm
http://isorecorder.alexfeinman.com/CreateCD.htm

Top
#125522 - 2004-10-21 05:07 AM Re: Scripted creation of CD.
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
I have been building customized XP SP2 and MSO2k3 cds from folders (of files).

Uses 2 MS free apps. CDBurn.exe and CDImage.exe are command line tools to make ISO out of a folder and then burn an ISO...

Very simple to do
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#125523 - 2004-10-21 05:49 AM Re: Scripted creation of CD.
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4549
Loc: USA
Links to utils Rad mentioned above:


CDBurn: http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

CDImage: http://www.tech-hints.com/prog/cdimage.zip

Top
#125524 - 2004-10-21 07:54 AM Re: Scripted creation of CD.
NTDOC Administrator Offline
Administrator
*****

Registered: 2000-07-28
Posts: 11624
Loc: CA
Yeah that CDBurn tool in the 2003 Resource Kit that Rad and Al talk about, looks like the tool I got from a MS TAM a year and a half ago.

Used it to burn a Server 2003 CD from a MS download that was in zip format, not ISO. Used a couple other tools to make it bootable, then burned it from CMD console.

Looks like they finally released it to the public.

Windows Server 2003 Resource Kit Tools
http://www.microsoft.com/downloads/details.aspx?familyid=9d467a69-57ff-4ae7-96ee-b18c4790cffd&displaylang=en

The following tools are provided:
Cdburn.exe: ISO CD-ROM Burner Tool

Top
#125525 - 2004-10-21 10:51 AM Re: Scripted creation of CD.
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
I thought I'd updated this thread - obviously not...

I was able to steer the development team towards a "mostly automated" solution, copying the files to the staging are and then initiating the burning process. IIRC this launches the wizard, which was sufficient for their needs.

While my immediate needs have been fulfilled the new information will be useful for anyone else who needs to perform a similar task.

Top
#125526 - 2004-10-21 02:58 PM Re: Scripted creation of CD.
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
It turn a folder into an ISO by dropping it on this batch
Code:

\\server\shared\CDIMAGE -LIMAGE -YD -N -H -X -OCI -M -D %1 IMAGE.ISO
move image.iso "%userprofile%\desktop"



to burn an ISO by dropping it on this batchfile

Code:

for /F "usebackq" %%i in (`"\\server\shared\findcd.com -a"`) do set CD=%%i:
\\server\shared\cdburn %cd% %1


_________________________
How to ask questions the smart way <-----------> Before you ask

Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 369 anonymous users online.
Newest Members
rrosell, PatrickPinto, Raoul, Timothy, Jojo67
17877 Registered Users

Generated in 0.076 seconds in which 0.027 seconds were spent on a total of 14 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org