FIND a filename with embedded spaces

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

rds33

Thread Starter
Joined
Nov 19, 2001
Messages
110
Windows FIND does a terrible job of locating filenames that have embedded spaces. Putting the name in quotes ("The Way we Were") doesn't work. Try it. You'll see. Note, however, that searching for a string with embedded spaces in the TEXT of a file does work. [Strange]
Anyhow, the secrect is to replace the spaces in a filename with question marks.
Note also that you don't need to use capital letters.
See attachment.
 

Attachments

Joined
Mar 18, 2001
Messages
1,741
You can also use the DOS DIR command and
enclose long filenames (with spaces) in quotes.

Open a DOS box, then type:

cd\

Press the ENTER key.

type this (using your filename):

dir /s "your filename goes here"

Press the ENTER key.

This will locate and display the path to your file.
Typing the "cd\" command gets you to the root
of the drive where the command will search all
directories (folders) and subdirectories. Also
handy for finding duplicate files.

If you have more than one drive, or if you wish to
search a CDROM or floppy, do this first in the
DOS box:

Type the drive letter with a colon like this:

d:

Press the ENTER key.

This gets you to the drive you prefer, where
you can use the "cd\" and "dir /s" commands.

Cheers, Mac :)
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top