[AccessD] A2003:Merging Many files into one file

Darren D darrend at nimble.com.au
Wed Jul 4 19:49:58 CDT 2007


Marty - Brilliant and simple

Just what I needed

Thanks

DD

-----Original Message-----
From: MartyConnelly [mailto:martyconnelly at shaw.ca] 
Sent: Wednesday, 4 July 2007 5:44 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] A2003:Merging Many files into one file

Use the old dos command with a Shell function or DOS cmd

Multifiles with wildcard

copy "C:\temp\short*.txt" "c:\:temp\mybigfile.txt"
or

copy "C:\temp\short1.txt" + C:\temp\short2.txt" "c:\:temp\mybigfile.txt"

get the help file for copy or xcopy at cmd prompt

C:\>copy /?
Copies one or more files to another location.


COPY [/V] [/N] [/Y | /-Y] [/Z] [/A | /B ] source [/A | /B]
     [+ source [/A | /B] [+ ...]] [destination [/A | /B]]


  source       Specifies the file or files to be copied.
  /A           Indicates an ASCII text file.
  /B           Indicates a binary file.
  destination  Specifies the directory and/or filename for the new
file(s).
  /V           Verifies that new files are written correctly.
  /N           Uses short filename, if available, when copying a file
with a
               non-8dot3 name.
  /Y           Suppresses prompting to confirm you want to overwrite an
               existing destination file.
  /-Y          Causes prompting to confirm you want to overwrite an
               existing destination file.
  /Z           Copies networked files in restartable mode.


The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line.  Default is
to prompt on overwrites unless COPY command is being executed from
within a batch script.


To append files, specify a single file for destination, but multiple
files for source (using wildcards or file1+file2+file3 format).




Darren D wrote:

>Hi All
>
> 
>
>I have no clue on how to do this
>
> 
>
>I have say.10 txt files that I want to merge into 1 big txt file
>
> 
>
>Any clues?
>
> 
>
>Many thanks in advance
>
> 
>
>Darren
>
>
>  
>

-- 
Marty Connelly
Victoria, B.C.
Canada

-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com

No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.9.12/878 - Release Date: 28/06/2007 5:57
PM
 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.476 / Virus Database: 269.9.12/878 - Release Date: 28/06/2007 5:57
PM
 




More information about the AccessD mailing list