|
Answer» Would like to make a dos batch file to do this:
Verify if CD-ROM is ready If NO print message and finish If YES cd label is "backup" If NO new message and finish IF YES verify if directory exist (this name will be the current date with compatible format) IF NO create directory and COPY from c:\TESTE all FILES IF YES verify if any files had changed if yes replace this file
Thanks.Hi Eremita,
I assume you use Nero for burning: (The burning commands are commands from nero, no standard cmd commands. My burner has the driveletter f:\. Proofing the CD-Title seems not really to work. If you work something out please let us know. I don`t really have experience with it. Just found the problem interesting. )
@echo off
set log=c:\programme\ahead\nero\log.txt
rem proof CD if exist %log% del %log% c:\programme\ahead\nero\nerocmd --cdinfo --drivename f >%log% if exist %log% echo no CD inside & del %log% & goto :EOF
rem Output if a CD is in the drive echo CD /RW - inside
rem CD erase c:\programme\ahead\nero\nerocmd --erase --drivename f
rem CD burn c:\programme\ahead\nero\nerocmd --write --drivename f --real --title backup --iso backup c:\cdrecord\*.*
echo CD - burnt
set log=
:EOF
hope it helps uliQuote rem proof CD if exist %log% del %log% c:\programme\ahead\nero\nerocmd --cdinfo --drivename f >%log% if exist %log% echo no CD inside & del %log% & goto :EOF
This part is wrong, sorry. I am working on some Nero solutions, but it will NEED a while cause I am a bit SHORT in time.
uli
|