doug mansell wrote: > 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... !
Yes, good point. Hopefully the MS-DOS MOVE command forms a list of files to be operated on right at the start, copies those files and then deletes only those files. That's the way the mv command works in Unix and Linux, but who knows how MS-DOS works. Tim C _______________________________________________ Gpcg_talk mailing list [email protected] http://ozdocit.org/cgi-bin/mailman/listinfo/gpcg_talk
