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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:34:02+00:00 2026-05-20T04:34:02+00:00

In some automated tests I put double-quotes around every command given to an executable,

  • 0

In some automated tests I put double-quotes around every command given to an executable, e.g.

notepad "hello.txt"

This works correctly. Also if I try the same with other executables this always seem to work. However, the following doesn’t work on Windows 7:

cmd.exe "/c" "echo hello"

The problem isn’t the quotes around “echo hello”, but it doesn’t seem to like the quotes around the /c option. All I get is the following output:

'"echo hello' is not recognized as an internal or external command, operable program or batch file.

Is cmd.exe handled differently by Windows?

  • 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-20T04:34:02+00:00Added an answer on May 20, 2026 at 4:34 am

    “hello.txt” is a filename, and in general you only quote filenames/paths (and other parameters that might contain spaces)

    And yes, cmd.exe probably has some special handling, you can use /S to change the quote handling.

    IMHO “/c” is bad practice anyway, it looks like you want to execute c.exe at the root of the current drive

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

Sidebar

Related Questions

I'm writing some automated tests using Capybara/RSpec, I choose/configure the driver by using this
I'm going to start coding some automated tests of our presentation soon. It seems
I'm writing some automated acceptance tests for a flash movie (driving the movie using
I'm using Watir to do some automated testing for a website. This particular test
I would like to add some automated performance test to my Objective-C application. (This
In our big application written with C# we have automated tests. Some of tests
I am attempting to run some automated tests in Eclipse using Java (running them
I'm using Selenium2 for some automated tests of my website, and I'd like to
I am using JUnit to do some automated tests on my application, the tests
I've created some automated tests using WatiN and MBunit and they run fine on

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.