In cases like these you should not retype the script but
use cut & paste to copy it from the news screen to your
notepad. This avoids errors, such as writing "C:" when
I wrote "D:"!
This time I will attach the batch file. Detach it and file it
in a suitable place.
I have added a PAUSE command to the end of the batch
file so that you can see what's going on. It is absolutely
essential that you remove the PAUSE line when using the
Task Scheduler to run your command!
Hello again,
Well, I am making progress (of a sort), but don't have it running
yet...
If I run it precisely as you sent it to me, I get the error:
Insufficient disk space on current disk. Insert another disk and type
<Return> to continue.
Assuming that the "current" disk is my "A" drive, I modified the code
(keeping your original version <g>) and changing the destination to
the I: drive which is my CD burner.
That give me the line:
xcopy /s /y /h /d:%Last% c:\*.* I:\
but when I run things that way, I get no error message, but nothing is
written to the CD.
Also, when I attempt to view the CD contents to see if something had
been written, I get the message "Please insert a disk into drive "I"."
Might that be because the CD in the burner is not formatted?
Next, I tried writing to a folder that I set up on a second internal
drive D: That folder is named BackupTest giving me:
xcopy /s /y /h /d:%Last% c:\*.* D:\BackupTest
That successfully copies boot.ini to the destination, but then hangs
with a sharing violation. The screen shows:
c:\boot.ini
c:\pagefile.sys
Sharing Violation
Press any key to continue.
When I press Enter, the DOS window closes...
In addition to all this, I realize that assuming I get it to copy
properly to the CD, I would need not only the date parameter, but a
time parameter as well. Doing the backup only once each day would not
be sufficient for my needs.
It also occurs to me that all of this started with my desire to do a
differential, (rather than an incremental) backup to CD. That would
mean that the date of the backup would not change in the log with each
use, but would simply be the date that I did the full disk image.
Then, when too many changed files accumulated to allow me to fit them
onto a CD, I would just do the full image again.
Related to that, can XCOPY span CDs? Or would it just give me an error
if I tried to put too much on one disk?
With all that, I am deeply appreciative of the assistance you have
already given me, and I certainly do not intend to impose.
If you can assist further, that would be great. If not, please accept
my thanks for all the help you have provided me thus far.
All the best,