On 14/11/2006, at 9:04 PM, Horst Herb wrote:
not so familiar with DOS type scripts - but wouldn't that format
the card even
if the copy failed for whatever reason? (not a nice thought when
considering "unique" snap shots)
Yes - you should check the copied files before agreeing to format the
card.
Is there a failproof way in DOS scripts to test for success as in
any UNIX
shell script?
Not without extensive coding AFAIK. There aren't default exit codes
for DOS commands where you could say if anything other than 0 stop.
You can't even do line counts and compare the two directories without
third-party tools - there is not even wc -l unless you add a unix shell.
Think of the smallest sh you can fit on a floppy, then divide it's
commands by 10, and you have DOS.
Peter.
_______________________________________________
Gpcg_talk mailing list
[email protected]
http://ozdocit.org/cgi-bin/mailman/listinfo/gpcg_talk