Solved

wildcards in DOS

Posted on 1998-01-14
7
194 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
  • 4
  • 2
7 Comments
 
LVL 9

Accepted Solution

by:
rmarotta earned 100 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
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Upper back Pain: My back hurt for months. Upper back, mostly my neck, spine and across my shoulder blades. I was getting headaches too, that felt like they were caused by tension in my shoulders, but now I feel fine! I'm sharing this hoping someone…
The Rasberry PI is a low cost piece of hardware that you can have a lot of fun with through experimenting and building/working on projects like media players, running a low cost computer, build data loggers etc. - see: https://www.raspberrypi.org
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

786 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