Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy 6 text files into a text file

Status
Not open for further replies.

nina1

Programmer
Aug 14, 2001
31
CA
I set up six exports macros with the specs to export six queries into six text files. Now I would like to create a macro that will copy each six files into one file.
Can somebody help me with a sample.

Thanks very much!
 
nina1,
you can do it with a simple .bat file:
Code:
@echo on
chdir c:\inbound\individual\df\temp
copy DFDATA_EDI.RCC0902 + DFDATA_EDI.RCC0903 + DFDATA_EDI.RCC0904 + DFDATA_EDI.RCC0906 + DFDATA_EDI.RCC00909 + DFDATA_EDI.RCC00910 + DFDATA_EDI.RCC0911 DFDATA_EDI.TMP
this places the contents of the first 7 files into the last file (DFDATA_EDI.TMP).
if i remember correct access does have the ability to execute shell commands.
hth
regards,
longhair
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top