Solved

wildcards in DOS

Posted on 1998-01-14
7
196 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

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)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Is my HP C7000 enclosure failing? 2 69
Locked BIOS on HP laptop 9 60
Mobo and Processor compatibility 3 73
ATI Radeon HD 5450 video card problem? 12 76
A clone is a duplicate copy. Sheep have been cloned and maybe someday even people will be cloned, but disk cloning (performed by the hard drive cloning software) is a vital tool used to manage and protect data. Let’s look at what hard drive cloning …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

730 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