Page 1 of 1 1
Topic Options
#213058 - 2017-12-13 02:23 PM Bug with %programfiles% variable in 64 bit
Robdutoit Offline
Hey THIS is FUN
***

Registered: 2012-03-27
Posts: 363
Loc: London, England
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

Top
#213059 - 2017-12-13 02:48 PM Re: Bug with %programfiles% variable in 64 bit [Re: Robdutoit]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
Not a bug... see this.
http://www.kixtart.org/forums/ubbthreads.php?ubb=showflat&Number=212087#Post212087

Top
#213060 - 2017-12-13 03:01 PM Re: Bug with %programfiles% variable in 64 bit [Re: Allen]
Robdutoit Offline
Hey THIS is FUN
***

Registered: 2012-03-27
Posts: 363
Loc: London, England
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

Top
#213061 - 2017-12-13 03:26 PM Re: Bug with %programfiles% variable in 64 bit [Re: Robdutoit]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
I agree, maybe if we talk to Ruud, he can do something about it.
Top
#213062 - 2017-12-13 03:51 PM Re: Bug with %programfiles% variable in 64 bit [Re: Allen]
Robdutoit Offline
Hey THIS is FUN
***

Registered: 2012-03-27
Posts: 363
Loc: London, England
Ok thanks. I will close this question. Cheers
Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
2 registered (morganw, mole) and 414 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.064 seconds in which 0.029 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org