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 554271
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T11:41:31+00:00 2026-05-13T11:41:31+00:00

How do I capture/read DOS input for use in MsBuild? EDITED for clarification Currently

  • 0

How do I capture/read DOS input for use in MsBuild?

EDITED for clarification

Currently I have 2 files. One batch file, the other is the core.msbuild file which contains the msbuild stuff. I want to be able to capture an extra user input e.g. an output directory, from the windows command prompt (when the build file is executed) and send it to the msbuild file (and set it to a PropertyGroup). %1 is already taken so I’m thinking to use %2.

Like the following:

build.bat param1 param2

param2 is the one im trying to capture and do the above.

Thanks.

  • 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-13T11:41:32+00:00Added an answer on May 13, 2026 at 11:41 am

    Got it…

    In the build.bat file, append this to a build string:

    ... /p:customOutputDir="%1"
    

    In MsBuild file:

    <PropertyGroup>
        <OutputDir>$(customOutputDir)</OutputDir>
    </PropertyGroup>
    

    Then OutputDir can be used in Targets.

    Thanks.

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

Sidebar

Related Questions

I want to read a file line by line and capture one particular line
I have written a packet reader that uses libpcap to read a capture file.
I have read that enabling Change Data Capture obviously has an impact on database
I'm using libqglviewer for a project, I read input from a motion capture device
I am trying to capture read/write operations on any IMG tag's src attribute. For
I read a document, capture phase is check for the event from target to
I want to read the full stack trace of an exception that I capture.
I'm trying to capture standard output of a command to a file-like object in
Possible Duplicate: C/C++: Capture characters from standard input without waiting for enter to be
(I have read What is the lifetime of lambda-derived implicit functors in C++? already

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.