• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 201
  • Last Modified:

wildcards in DOS

I typed the following command (for the Asend program) to download some files to a remote computer. I got a very different result than I expected. What I want to know is why the wildcard did not function the way it looks like it should:

\any\asend c:\*stat.db from remote

The result was that *every* .db file was downloaded! Not just the ones that ended in "stat". What happened?!

Clara
0
clara
Asked:
clara
  • 4
  • 2
1 Solution
 
rmarottaCommented:
clara
Try to use: c:\????stat.db instead.
Hope this helps,
Ralph

0
 
rmarottaCommented:
The * wild card gives every instance of files with the .db extension in this case.
The ? is a placeholder for any character taking up that position in the filename.
regards

0
 
claraAuthor Commented:
Doesn't  *  mean "no characters, one character, or more than one character"?
And how can "stat" just be ignored?

-C
0
[Video] Create a Disruption-Free Workspace

Open offices have their challenges. And Sometimes, it's even hard to work at work. It's time to reclaim your office and create a disruption-free workspace. With the MB 660, you can:

-Increase Concentration
-Improve well-being
-Boost Productivity

 
bigelosCommented:
Clara,

* means ignore characters following the * (until the .)

i.e. *any.db = *.db
but any*.db doesn't equal *.db

Use the ??? instead, as proposed in the answer
0
 
claraAuthor Commented:
Ok, thank you for that. I wasn't aware that * functioned that way.

So any*.db would include anyfile.db and anylist.db?
And
Suppose I wanted to include:
daystat.db
nitestat.db
pgstat.db
all in one command? I see why *stat.db doesn't work. What would?
It doesn't seem like ????stat.db would include all three files.

-C
0
 
rmarottaCommented:
try it!
0
 
rmarottaCommented:
clara,
If all filenames have eight characters, no problem with the ???? before stat.  You may have to run several passes to get all the files  if there are different size filenames. (???, ??, or ? before stat.)
regards,
Ralph
0

Featured Post

Sign your company up to try the MB 660 headset now

Take control and stay focused in noisy open office environments with the MB 660. By reducing background noise, you can revitalize your office and improve concentration.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now