|
|
#1 |
|
Guest
Posts: n/a
|
Bug in IfFileExists?
I'm creating hyperlinks with NSIS to dirs if the dir exists. Testing the code I found this:
IfFileExists "C:\*.*" returned "EXISTS" in Win2K and "DOES NOT EXIST" in Win98 (and it actually exists ).For other dirs (eg: "C:\Program Files\*.*") everything seems to work fine. I guess this is a bug ![]() Greetz, -Hendri. |
|
|
|
#2 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
If you want to find any file why not use FindFirst?
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
KiCHiK,
I only want to know if the directory exists. If it does not exist, then the utility will not create a hyperlink to that dir. Otherwise it will. So I need to use IfFileExists. Thx for your response though ![]() Greetz, -Hendri. |
|
|
|
#4 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Well, IfFileExists uses FindFirstFile anyway...
![]() I have also tried some combinations my self on Win98, nothing seems to work... Must be yet another Microsoft unreferenced feature ...
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#5 |
|
Guest
Posts: n/a
|
Hmmm...
doesn't sound hopefull .Is there a way to overcome this problem with current NSIS? -Hendri. |
|
|
|
#6 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
Try searching MSDN, maybe you will find something useful over there...
NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#7 |
|
M.I.A.
[NSIS Dev, Mod] Join Date: Oct 2001
Location: Israel
Posts: 11,337
|
GetFullPathName $1 "Q:\*.*"
Seems to work prefectly fine on both XP and Win98. It returns an empty string if not found. NSIS FAQ | NSIS Home Page | Donate $ "I hear and I forget. I see and I remember. I do and I understand." -- Confucius |
|
|
|
|
|
#8 |
|
Guest
Posts: n/a
|
Of course, I didn't think of this because I was fixed on IfFileExists too much...
Thx, -Hendri. |
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|