Robdutoit
(Hey THIS is FUN)
2017-12-13 02:23 PM
Bug with %programfiles% variable in 64 bit

When I do something like this:

 Code:
if exist ("%programfiles%\Mozilla Firefox\") = 1
then do whatever
Endif


This will detect c:\program files\mozilla Firefox\ in Windows 7 32 bit, but does not work in Windows 7 64 bit. I have to change %programfiles% to c:\program files.

Yet when I run set in cmd on Windows 7 64 bit, the %programfiles% variable definitely points to c:\program files.

So I assume that this is some bug in Kixtart. Tried with versions 4.66 and 4.67


AllenAdministrator
(KiX Supporter)
2017-12-13 02:48 PM
Re: Bug with %programfiles% variable in 64 bit

Not a bug... see this.
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=212087#Post212087


Robdutoit
(Hey THIS is FUN)
2017-12-13 03:01 PM
Re: Bug with %programfiles% variable in 64 bit

Shouldn't kixtart read whatever set is showing in the command prompt rather than kix relying on being a 32 bit or 64 bit process. In windows itself, the set command shows as c:\program files and thats what kix should be reading.

I will implement the changes as directed in the other thread or just simply change the coding to use c:\program files as I don't have anything that in the c:\program files (x86) folder that the script needs to know about.

Thanks


AllenAdministrator
(KiX Supporter)
2017-12-13 03:26 PM
Re: Bug with %programfiles% variable in 64 bit

I agree, maybe if we talk to Ruud, he can do something about it.

Robdutoit
(Hey THIS is FUN)
2017-12-13 03:51 PM
Re: Bug with %programfiles% variable in 64 bit

Ok thanks. I will close this question. Cheers