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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T08:33:16+00:00 2026-06-07T08:33:16+00:00

No doubt this has been answered already :/ I’m not certain how to word

  • 0

No doubt this has been answered already :/ I’m not certain how to word this. I just want the file one.txt to return by what I thought would be dir *.txt

Here are some examples to show that it doesn’t behave like I had thought.

dir *.txt

one.txt
one.txtf

dir *txt

one.txt
one.txtf

dir *txtf

one.txtf

dir *tx?

one.txt
one.txtf

dir *.???

one.txt
one.txtf

dir one.???

one.txt

dir *”.”???

one.txt
one.txtf
  • 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-06-07T08:33:17+00:00Added an answer on June 7, 2026 at 8:33 am

    EDITED

    In short – by definition the DIR command works as you’re implying so it’s one of those "by design" things.

    From Microsoft on the DIR command directly. This explanation is a bit more winded than the below from the .NET framework.

    From MSDN on the .NET Framework Implementation

    When using the asterisk wildcard character in a searchPattern, such as ".txt", the matching behavior when the extension is exactly three characters long is different than when the extension is more or less than three characters long. A searchPattern with a file extension of exactly three characters returns files having an extension of three or more characters, where the first three characters match the file extension specified in the searchPattern. A searchPattern with a file extension of one, two, or more than three characters returns only files having extensions of exactly that length that match the file extension specified in the searchPattern. When using the question mark wildcard character, this method returns only files that match the specified file extension. For example, given two files, "file1.txt" and "file1.txtother", in a directory, a search pattern of "file?.txt" returns just the first file, while a search pattern of "file.txt" returns both files.

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

Sidebar

Related Questions

I have no doubt this has been asked and answered here a dozen times,
Though I don't doubt this has been answered I cannot find a great match
Pardon me if you feel this has been answered numerous times, but I need
This doubt has been bugging me for quite sometime now. I'll try to present
This question has been asked again and again, but I have still a doubt.
I know this has been asked before but there is really not a clear
I'm not sure if this question has been asked before ( searched through SOF
This question has no doubt been asked in various forms in the past, but
It has been a while now that i have this doubt about Adding GPX
I doubt this is possible, and I'm certain to do it in a production

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.