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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T01:03:03+00:00 2026-05-17T01:03:03+00:00

On windows systems, certain dos commands don’t have executables that can be explicitly called

  • 0

On windows systems, certain dos commands don’t have executables that can be explicitly called via NAnt’s exec task. (I’m talking specifically about commands that are part of Command.com)

A complete list can be found here. While some of the more useful commands can be achieved with NAnt or NAntContrib tasks (copy, move, rename etc), some (such as ‘type’) cannot.

How can you execute these commands as part of a build? For example, using a wildcard, how can I easliy display the contents of a log file from an external command executed by my build (so that the external command’s log file contents will become echoed into the build’s log file)

  • 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-17T01:03:03+00:00Added an answer on May 17, 2026 at 1:03 am

    Internal commands can be called using the exec task in the following manner :

    <exec workingdir="${dir}" program="cmd" commandline="/c <command/> <arguments/>" />
    

    For the scenario in the question (where the log’s filename is based on the current time, partway through the build), rather than parsing/scanning for the filename, loading it into a property and then echoing it, you could echo log contents with the following task :

    <exec program="cmd" workingdir="${dir}" commandline="/c type *.log" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have learned that Windows uses UTF-16LE on x86/x64 systems. What about Linux? Which
I want to access certain form elements from classes that normally don't have access
Wikipedia states that underscores are used by both Android and Microsoft Windows Systems in
On other windows operating systems, I could create a Windows Service that listens to
I have the next problem. I have several PHP systems running in different Windows
I have seen that Windows system use temporary files to increase the performance of
How can you convert the System.Windows.Point that is returned by MouseDevice.GetPosition(null), which is relative
I have a grid that needs to hide certain columns right after its data-bound.
How can I have a WinForms program do some specific thing whenever a certain
I have created a .NET Windows Service which performs certain actions and generates reports.

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.