Old 8th March 2006, 17:37   #1
szucs
Junior Member
 
Join Date: Mar 2006
Posts: 4
Question IfFileExists problem with parameter including whitespace

Hello,

I have problems with IfFileExists having a parameter which is a directory not a file and has one or two whitespace characters in it.

It simply does not work.

Could You tell me some workaround for this?

Thanks!
szucs is offline   Reply With Quote
Old 8th March 2006, 17:49   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Put quotes around it. Also place "\*.*" at the end of the path so that it does a folder check and not a file check on the path.

e.g.
IdFileExists "$EXEDIR\dir\*.*"

-Stu
Afrow UK is offline   Reply With Quote
Old 8th March 2006, 19:22   #3
szucs
Junior Member
 
Join Date: Mar 2006
Posts: 4
thanks

Hello Afrow UK,

I appreciate Your fast help!

szucs is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump