News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

FindFirstFile

Started by Mr Earl, February 24, 2006, 01:09:06 PM

Previous topic - Next topic

Mr Earl

FindFirstFile returns a File Name for:

C:\Documents and Settings\Steve\My Documents\My Music\MP3 Files\*

But returns error 2, "File Not Found" for:

C:\Documents and Settings\Steve\My Documents\My Music\MP3 Files\*.mp3

The MP3 Folder has many .mp3 files, why won't "FindFirstFile" find them?

Thanks


Tedd

No idea. This example works fine. (Add the path into fname; or move the exe into the directory)
Possibly one of you're parameters is off?


[attachment deleted by admin]
No snowflake in an avalanche feels responsible.

Mark Jones

Hi Mr. Earl, I've used FindFirstFile extensively in my IncFind project at http://www.masmforum.com/simple/index.php?topic=3863.0 and it does fully work with wildcards and file extensions. For instance "mypath\*.???" or even "mypath\fil*.r?" will produce results if files match. So long story short, there is no reason why your path should not work. Perhaps try a ScanDisk?  Regards, Mark
"To deny our impulses... foolish; to revel in them, chaos." MCJ 2003.08

zooba

Oh my goodness...  :eek

Your MP3 folder:
Quote from: Mr Earl on February 24, 2006, 01:09:06 PM
C:\Documents and Settings\Steve\My Documents\My Music\MP3 Files\

My MP3 folder:

C:\Documents and Settings\Steve\My Documents\My Music\MP3 Files\

That's freaky...

Tedd

If you're both named Steve, I don't think it's so freaky.
Now, if you were both named Maria - then it would be freaky :bdg
No snowflake in an avalanche feels responsible.