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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:02:50+00:00 2026-05-22T03:02:50+00:00

This command in the Visual Studio 2010 Post-build event for %f in ($(ProjectDir)$(OutDir)*.dll) do

  • 0

This command in the Visual Studio 2010 Post-build event

for %f in ("$(ProjectDir)$(OutDir)*.dll") do echo %f

(echo will be replaced with some other tool) gives me the error

The command "[...]" exited with code 255.

I guess I have to escape the outermost round brackets but I don’t know how. I tried \( and ((.

  • 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-22T03:02:51+00:00Added an answer on May 22, 2026 at 3:02 am

    You might need to use %%f instead of %f for the first one (and maybe the second one). In a batch file (which VS might use to implement these custom build steps), you have to use the extra % for identifiers.

    Edit: here’s the first part of the output from help for on the command line.

    Runs a specified command for each file in a set of files.

    FOR %variable IN (set) DO command [command-parameters]

    %variable Specifies a single letter replaceable parameter.
    (set) Specifies a set of one or more files. Wildcards may be used.
    command Specifies the command to carry out for each file.
    command-parameters
    Specifies parameters or switches for the specified command.

    To use the FOR command in a batch program, specify %%variable instead
    of %variable. Variable names are case sensitive, so %i is different
    from %I.

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

Sidebar

Related Questions

I used the Visual Studio 2010 Command Prompt's gacutil.exe to install an assembly. I
Visual Studio 2010 has a Publish command that allows you to publish your Web
I'm trying to start visual studio 2010 from command prompt using 'RUNAS' so that
This is on a 64 bit Windows Machine, also running Visual Studio 2010. A
When running the witadmin command from the Visual Studio 2010 Command Line, where is
I have created this simple window with Visual Studio 2010: #include <stdio.h> #include <string.h>
I'm trying to add jsmin.exe as a post-build event to my VS 2010 project
The following command works fine. It opens a new instance of Visual Studio 2010:
My Visual Studio 2010 (with Service Pack 1) install is corrupted. This is on
Much like this question is there a way to make Visual Studio 2010 prompt

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.