Solved

How to combine 2 excels into one, and include header from only first one

Posted on 2014-11-19
7
89 Views
Last Modified: 2014-12-26
Hi,

How do we combine 2 excels into one, and include header from only first one.
Is there a any easy way to script it via a bat file.

Thanks!
0
Comment
Question by:chetan1981
  • 3
  • 2
7 Comments
 
LVL 69

Expert Comment

by:Qlemo
ID: 40453904
Do you really mean XLS(x), or rather CSV?
0
 
LVL 69

Expert Comment

by:Qlemo
ID: 40453910
The former requires Office Automation, and that only works with .NET(like) languages (VB, VB Script, PowerShell), The latter is feasible in a .cmd batch, unless there are special characters like ampersand, parens, percent signs, double quotes, in short - very delicate.
0
 

Author Comment

by:chetan1981
ID: 40455025
CSV should be fine too..thanks
0
 
LVL 69

Accepted Solution

by:
Qlemo earned 500 total points
ID: 40455133
copy /A firstFile.csv combinedFile.csv
more +1 <secondFile.csv >>combinedFile.csv

Open in new window

0
 

Author Comment

by:chetan1981
ID: 40455332
Thanks!
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question