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

  • SEARCH
  • Home
  • 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 7955713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T03:46:41+00:00 2026-06-04T03:46:41+00:00

I am using: <exec executable=cmd> <arg line=${argLine} /> </exec> when argLine <property name=argLine value=http://127.0.0.1:/product/findSameStyleSku.json?skuId=305&amp;style=120662/>

  • 0

I am using:

<exec executable="cmd">
<arg line="${argLine}" />
</exec>

when argLine

<property name="argLine" value="http://127.0.0.1:/product/findSameStyleSku.json?skuId=305&amp;style=120662"/>

with 2 params ,and i use &amp; escape & symbols

but only open http://127.0.0.1/product/findSameStyleSku.json?skuId=305

the style param lost

In short,i want run

<target name="111test"> 
    <exec executable="cmd" output="e:/test.txt">
        <arg line="/c start '' 'http://127.0.0.1/product/findSameStyleSku.json?skuId=305&amp;%3bstyle=120662'" />
    </exec>  
</target>

2012-05-23 update

Yes,Windows system

I change code to

<target name="111test">
    <exec executable="cmd" output="e:/test.txt">
        <arg value="/c" />
        <arg value="start" />
        <arg value="" />
        <arg value="http://127.0.0.1/product/findSameStyleSku.json?skuId=305&amp;%3bstyle=120662" />
    </exec>
</target>

run ant

only open

http://127.0.0.1/product/findSameStyleSku.json?skuId=305

I change “&amp;%3b” to “&amp;“

also only open

http://127.0.0.1/product/findSameStyleSku.json?skuId=305

But in cmd, i use

start "" "http://127.0.0.1/product/findSameStyleSku.json?skuId=305&style=120662"

can open http://127.0.0.1/product/findSameStyleSku.json?skuId=305&style=120662

  • 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-06-04T03:46:43+00:00Added an answer on June 4, 2026 at 3:46 am

    Not exactly understanding what it’s trying to open. Is it literally trying to open a URL with ***?skuId=305, or are you trying to say it’s trying to open the URL you gave it up to, but not including the semicolon?

    If you are saying that it is leaving off the last part of your URL, you should understand that semicolons cannot be part of the actual URL you’re sending. They’re reserved and must be specially encoded.

    Make sure that semicolon is even suppose to be there. When you do a GET request, you have the basic URL, and then after that URL a question mark. After that, you have a series of parameters you’re passing to the URL with each parameter separated by ampersands. In your case, it looks like you want to send a request to URL:

    • http://127.0.0.1:/product/findSameStyleSku.json

    With the following two parameters:

    • skuId = 305
    • style = 120662

    So, it looks like the semicolon is bogus. Otherwise, you’re passing the parameter ;style and not style. And, that doesn’t seem it would be correct.

    If you’ve determined that the semicolon is really suppose to be there, try replacing the semicolon in the URL with %3b:

    <property name="argLine" value="http://127.0.0.1:/product/findSameStyleSku.json?skuId=305&amp;%3bstyle=120662"/>
    

    Response

    ,i’m sorry ,it does’t Work correctly,I updated my question – feeling

    Unfortunately, since this is on a Windows machine, and is something running locally on your machine, I can’t run a test myself.

    However, according to the first part of your post, you are attempting to run the following command:

    C> cmd http://127.0.0.1:/product/findSameStyleSku.json?skuId=305&amp;style=120662
    

    Later in your post, you say you want to run:

    C> cmd /c start '' 'http://127.0.0.1/product/findSameStyleSku.json?skuId=305&amp;%3bstyle=120662'
    

    The first certainly won’t work from the command line. Does the second one?

    I’ve done a few tests on my current computer using this:

    <property name="argLine"
        value="http://etzahaim.org/index.php?option=com_content&amp;task=blogcategory&amp;id=15&amp;Itemid=34"/>
    <exec executable="curl">
        <arg value="${argLine}"/>
        <arg value="--include"/>
        <arg value="--output"/>
        <arg value="curl.out"/>
    </exec>
    

    This is the curl command which fetches the URL. This URL is also uses a GET method, so it also has a question mark and some asterisks in the URL. This works for me.

    Try switching from <arg line='start' '' 'http://...> to using <arg line> and see if that helps:

    <target name="111test"> 
        <exec executable="cmd" output="e:/test.txt">
            <arg value="/c"/>
            <arg value="start"/>
            <arg value=""/>
            <arg value="${argline}" />
    </exec>
    

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

Sidebar

Related Questions

I am using exec function to execute the specific executable files in php .
i'm trying to run one c executable file using php exec() . When c
I would like to create a pipe in a ksh script (using exec) that
Can I run a PHP CGI script as a background process using exec() ?
How can I implement chmod command on file by using exec? I would appreciate
I'm using the exec command to call R , but I don't understand how
I am trying to spawn a process using Runtime.exec. I want to use my
I am trying to run a mysql insert query using php exec with parameters.
We're using the Maven exec:java goal to run a custom java application that configures
My UI blocked only in 4.0.* by using clause:Runtime.getRuntime().exec(cat proc/meminfo);. Is there something wrong

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.