Solved

wildcards in DOS

Posted on 1998-01-14
7
197 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 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Moving your enterprise fax infrastructure from in-house fax machines and servers to the cloud makes sense — from both an efficiency and productivity standpoint. But does migrating to a cloud fax solution mean you will no longer be able to send or re…
In the modern office, employees tend to move around the workplace a lot more freely. Conferences, collaborative groups, flexible seating and working from home require a new level of mobility. Technology has not only changed the behavior and the expe…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

717 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