This code worked well: move /Y c:\test1\*.txt c:\test2\ Tim Churches wrote:
>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 > > > > -- *********************************************************************************************************************************************************** This communication is confidential to the named addressee, may contain legally privileged information and is subject to copyright. By the use of email over the Internet, West Brunswick Clinic is not waiving either confidentially of, or legal privilege in, the content of the email and of any attachments. No-one else may read, print, store, copy, forward or act in reliance on all or any of this email or its attachments.If you are not the intended recipient, any use, reliance upon it, disclosure or copying of this email is prohibited and unlawful. If you have received this email in error please notify the sender immediately (at our cost) 03 9387 9088 Australia. West Brunswick Clinic does not warrant that this email and any attachments are error or virus free and recommends that all attachments be checked for computer viruses. *********************************************************************************************************************************************************** _______________________________________________ Gpcg_talk mailing list [email protected] http://ozdocit.org/cgi-bin/mailman/listinfo/gpcg_talk
