Skip to content
⌘ NSIS Forum Archive

IfFileExists problem with parameter including whitespace

3 posts

szucs#

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!
Afrow UK#
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