Batch file to backup to CD-RW

  • Thread starter Thread starter Saycoda
  • Start date Start date
S

Saycoda

Is it possible to use built-in windows capabilities to write a batch
file to backup specific folders to a CD-RW? It must have the following
features;

1) Be scheduled - execute at the some time everyday
2) Automatic erasure - if the CD get fulls, it needs to automatically
(no user intervention) format the CD and ready it for the back up.

I have not been able to find a program that does this without
manual/user intervention.

TIA
 
Saycoda said:
Is it possible to use built-in windows capabilities to write a batch
file to backup specific folders to a CD-RW? It must have the following
features;

1) Be scheduled - execute at the some time everyday
2) Automatic erasure - if the CD get fulls, it needs to automatically
(no user intervention) format the CD and ready it for the back up.

I have not been able to find a program that does this without
manual/user intervention.

TIA

You can do this with nerocmd.exe if your machine has
Nero installed. The command looks like this:

"c:\program files\ahead\nero\nerocmd.exe" @c:\tools\nero.scr

and the file nero.scr contains the commands you want nero
to execute. Type
nerocmd /? to see the full set of available commands. They
look like so:
--write
--real
--drivename G
--speed 32
--disable_eject

To detect if the CD is nearly full, run this batch file command:
for /F "tokens=3" %%a in ('dir E:\ /-c ^| find /i "bytes free"') do set
free=%%a
and compare %free% against your chosen limit.

This is not a trivial task - be prepared to spend a couple of
hours on it.
 
Back
Top