partial file name string search

  • Thread starter Thread starter Chris
  • Start date Start date
C

Chris

When I first looked at this I thought it would be very simple and
everyone would have done it before, but either I'm totally lost or
something, because I'm really struggeling to find anything that looks
useful.
What I'm trying to do is create a little app, (preferably .cmd, or
..vbs), which I can sit on a remote server, and anyone can run it, it
will (eventually) ask the user for a string, which should be part of a
filename, (any part, could even be in the middle of the filename). The
app should then return a list of the files, (they will be employee
photos), which they can click on to view. Well that's all the
background. My real problem at the moment is that I can't find any
easy way, even using a doss driven exe which takes a partial string
and returns matching file names. They all seem to return strings
inside the files, which is NOT what I want. If anyone knows of a good
doss app, or has a bit of code to get me started that would be greatly
appreciated, I've spent a fair bit of time going over this, and it's
not as simple as I initially thought.
Thanks
Chris
 
Chris said:
When I first looked at this I thought it would be very simple and
everyone would have done it before, but either I'm totally lost or
something, because I'm really struggeling to find anything that looks
useful.
What I'm trying to do is create a little app, (preferably .cmd, or
.vbs), which I can sit on a remote server, and anyone can run it, it
will (eventually) ask the user for a string, which should be part of a
filename, (any part, could even be in the middle of the filename). The
app should then return a list of the files, (they will be employee
photos), which they can click on to view. Well that's all the
background. My real problem at the moment is that I can't find any
easy way, even using a doss driven exe which takes a partial string
and returns matching file names. They all seem to return strings
inside the files, which is NOT what I want. If anyone knows of a good
doss app, or has a bit of code to get me started that would be greatly
appreciated, I've spent a fair bit of time going over this, and it's
not as simple as I initially thought.
Thanks
Chris


S'matter of fact, many years ago I got tired of typing
dir *sometext*.* /s
at a command prompt when I want to list file names
containing "sometext", so I use a very simple little
cmd file "d.cmd" that lets me simply type
d sometext

The only line in d.cmd is
dir *%1*.* /s


Type "dir /?" at a command prompt for more info
on using the dir command.


You can also use the search feature built into Explorer.
There are also third party alternatives to Explorer that
have much more powerful search capabilities.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top