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

The Archive Base Latest Questions

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

I am looking for a way to pass a string containg the * character

  • 0

I am looking for a way to pass a string containg the “*” character to an executable via the command line.

  command.exe 3*2

I want to pass the string 3*2. What Windows does instead is search the current directory for files matching the file mask “3*2”, and passes any files it found to command.exe

Putting “3*2” between double quotes does not help, still the same problem.

I also tried ‘3*2’ (between single quotes), but then this whole string (including the single quotes) is passed, which is not what I need.

Is there any way to pass the string 3*2 (without any quotes) to the command?

  • 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-13T21:31:48+00:00Added an answer on May 13, 2026 at 9:31 pm

    In Windows command shells, the command you execute is responsible for expanding any wildcards present in the parameters. This behaviour is different to Unix and friends, where wildcard expansion is usually done by the shell. 

    A simple example demonstrates this.

    Windows (Windows 7):

    C:\Users\Frank>echo *
    *
    

    As you can see, the command outputs the parameter exactly as passed in by the command line.

    Linux (bash on CentOS Linux 5):

    > echo *
    centos-release-5-0.0.el5.centos.2.i386.rpm centos-release-notes-5.0.0-2.i386.rpm glibc-2.5-12.i386.rpm glibc-common-2.5-12.i386.rpm virtualmin-install.log
    

    Here the wild card parameter is substituted by the shell to a list of file/directories in the current directory.

    So if your executable handles wildcard characters by expanding them, there is not much you can do about it. The concrete behaviour depends on your command.

    If you provide more details about your command and what you want to achieve, we might be able to give some more help.

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

Sidebar

Ask A Question

Stats

  • Questions 334k
  • Answers 334k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The magic word is this, e.g. public Tree( int a,… May 14, 2026 at 3:28 am
  • Editorial Team
    Editorial Team added an answer well could solve the problem using a min-height in the… May 14, 2026 at 3:28 am
  • Editorial Team
    Editorial Team added an answer Timestamp (both PHP ones and MySQL's ones) are stored using… May 14, 2026 at 3:28 am

Related Questions

I'm looking for a way to have a function such as: myFunction({Key, value}, {Key2,
I would like to pass a parameter defined in the XAML (View) of my
I have a function, say: setValue: function(myValue) { ... } The caller might pass
I have a daemon that reads a configuration file in order to know where
I'm writing a microformats parser in C# and am looking for some refactoring advice.

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.