Hi,

how can I make FindFirstFile working with directories including spaces in dirname ?

Thisone works perfect:

db "C:\*",0
db "C:\POWERDRV\*",0
...

This dirs don't work:

db "C:\PROGRAM FILES\*",0

This don't works,too...:

db 34,"C:\PROGRAM FILES\*",34,0
db 34,"C:\PROGRAM FILES\",34,"*",0
...

Please help.

Greetings, Nordwind64
Posted on 2003-04-21 07:16:26 by Nordwind64
Use GetShortPathName to get something like C:\PROGRA~1 from C:\PROGRAM FILES. Or you could try adding " (22h) around the path name (haven't tried this tho).
Posted on 2003-04-21 08:28:07 by Delight
Hi again,

sorry, sorry, sorry...
It is possible to use spaces in dirnames. I made an error setting the current directory using GetFullPathName before... :eek:

Thanks Delight, I'm stupid...

Greetings,
Nordwind64
Posted on 2003-04-21 08:43:35 by Nordwind64
Don't worry. People makes mistakes. :alright: It is alright to make them. No one is perfect.
Posted on 2003-04-21 09:02:06 by roticv
:alright:
Posted on 2003-04-21 11:08:54 by Nordwind64