Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

wildcards in DOS

Posted on 1998-01-14
7
Medium Priority
?
200 Views
Last Modified: 2010-04-12
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
Comment
Question by:clara
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
7 Comments
 
LVL 9

Accepted Solution

by:
rmarotta earned 400 total points
ID: 1017679
clara
Try to use: c:\????stat.db instead.
Hope this helps,
Ralph

0
 
LVL 9

Expert Comment

by:rmarotta
ID: 1017680
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
 

Author Comment

by:clara
ID: 1017681
Doesn't  *  mean "no characters, one character, or more than one character"?
And how can "stat" just be ignored?

-C
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 3

Expert Comment

by:bigelos
ID: 1017682
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
 

Author Comment

by:clara
ID: 1017683
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
 
LVL 9

Expert Comment

by:rmarotta
ID: 1017684
try it!
0
 
LVL 9

Expert Comment

by:rmarotta
ID: 1017685
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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Stuck in voice control mode on your Amazon Firestick?  Here is how to turn it off!!!
This article outlines why you need to choose a backup solution that protects your entire environment – including your VMware ESXi and Microsoft Hyper-V virtualization hosts – not just your virtual machines.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

618 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question