On 2/7/06, Tim Churches <[EMAIL PROTECTED]> wrote:
> Elizabeth Dodd wrote:
> > On Tue, 7 Feb 2006 07:06, Michael Christie wrote:
> >> Sorry the previous post should read " moves all the text files
> >> (*.txt) from c:\test1 folder to c:\test2 folder."
> >> You know what I mean!
> >> _______________________________________________
> >> Gpcg_talk mailing list
> >> [email protected]
> >> http://ozdocit.org/cgi-bin/mailman/listinfo/gpcg_talk
> >
> > Now, this is rusty indeed
> >
> > copy c:\test1\*.txt c:\test2\*.txt
> > del c:\test1\*.txt
>
> The problem with the above is what happens if the copy fails (due to
> lack of disc space)? The delete will still proceed. Then you have no
> files anywhere...
>

Another problem is that txt files may appear in c:\test1\ after the
copy and before the delete... !
_______________________________________________
Gpcg_talk mailing list
[email protected]
http://ozdocit.org/cgi-bin/mailman/listinfo/gpcg_talk

Reply via email to