Solved

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

Posted on 2014-11-19
7
91 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 70

Expert Comment

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

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 70

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
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 …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

738 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