Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6755335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:23:14+00:00 2026-05-26T13:23:14+00:00

I need to concatenate two files. I use Ant’s exec for this purpose, but

  • 0

I need to concatenate two files. I use Ant’s exec for this purpose, but I get the following error.

production:
 [exec] Current OS is Windows 7
 [exec] Executing 'cmd' with arguments:
 [exec] 'copy /B destination\bin\installer.sh+destination.tar.gz Installer.bin'
 [exec]
 [exec] The ' characters around the executable and arguments are
 [exec] not part of the command.
 [exec] Microsoft Windows [Version 6.1.7600]
 [exec] Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
 [exec]

The task looks like this:

<target name="production" depends="tar" >
    <exec dir="${bin}"  executable="cmd">
        <arg line="'copy /B destination\bin\installer.sh+destination.tar.gz Installer.bin'"/>
    </exec>
</target>

How can I fix this error?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:23:15+00:00Added an answer on May 26, 2026 at 1:23 pm

    Try this,

    <target name="production" depends="tar" >
      <exec dir="${bin}" executable="cmd">
        <arg line="/C copy /B destination\bin\installer.sh+destination.tar.gz Installer.bin"/>
      </exec>
    </target>
    

    You would need to have the /C to indicate that you are passing a command in to the cmd.exe

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to concatenate two mp4 files using ffmpeg. I need this to be
I need to concatenate 3 files using C#. A header file, content, and a
I need to concatenate some relatively large text files, and would prefer to do
I need to concatenate two const chars like these: const char *one = Hello
How to concatenate two variables to obtain something like this? $var = sss; $i
I'm trying to concatenate two uint32_t and get back a uint64_t. Here's my method
It's very pointless and troublesome that everytime that you need to concatenate two strings
i need to concatenate images in php (two or more), both vertically and horizontally.
I have two tables involved in this query I need to create, and I'm
I need to concatenate files and print it. However I also want to add

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.