there's another twist to this: is scmbug a 32 bit program or a 64 bit? does this depend on the version of the Perl interpreter? i actually installed the 32bit version of ActiveState Perl, because i couldn't get the packages i needed for Bugzilla with the 64bit version. what does this make of any Perl script?
the problem of the absolute paths is a problem by itself. you can certainly imagine someone having his Program Files folder on a drive other than C, for example. you should always get the %ProgramFiles% environment variable, and not use absolute path. note that at least on Windows Server 2003 x64, there are two environment variables: %ProgramFiles% and %ProgramFiles(x86)%. maybe you should test for the existence of the later to determine the system type. -- The day Micro$oft sells something that doesn't SUCK is the day they start selling vacuum cleaners. http://www.geocities.com/tsahi_75 ----- Original Message ---- > From: Thorsten Schöning <[EMAIL PROTECTED]> > To: [email protected] > Sent: Wednesday, December 12, 2007 11:37:18 PM > Subject: Re[2]: [scmbug-users] error in parameter to diff on win64 > > Guten Tag Kristis Makris, > am Mittwoch, 12. Dezember 2007 um 19:17 schrieben Sie: > > >> on Windows Server 2003, 64 bit (btw, on this system 32bit > programs > should be in "Program Files (x86)", and not "Program Files"). > > > This is certainly another bug: > > > http://bugzilla.mkgnu.net/show_bug.cgi?id=1079 > > > Is there a way we can dynamically discover whether a Windows > machine > is > > 32-bit or 64-bit ? Is there some environment variable we can consult > > that accurately reports this ? > > One shouldn't need to identify the version of Windows because Windows > redirects the API calls for each 32 and 64 bit programs > automatically. If a 32 bit program needs %ProgramFiles$ it gets for > example C:\Program Files (x86), else a 64 bit program gets C:\Program > Files. The problem with the standard SCMBug-Zip for Windows is, as I > think, that a absolute path is saved. > > http://msdn.microsoft.com/library/en-us/win64/win64/running_32_bit_applications. > asp > > Mit freundlichen Grüßen, > > Thorsten Schöning > > -- > Thorsten Schöning > AM-SoFT IT-Systeme - Hameln | Potsdam | Leipzig > > Telefon: Potsdam: 0331-743881-0 > E-Mail: [EMAIL PROTECTED] > Web: http://www.am-soft.de > > AM-SoFT Potsdam GmbH, Konsumhof 1-5, 14482 Potsdam > Amtsgericht Potsdam HRB 12480, Geschäftsführer Andreas Muchow > > _______________________________________________ > scmbug-users mailing list > [email protected] > http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users > ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ _______________________________________________ scmbug-users mailing list [email protected] http://lists.mkgnu.net/cgi-bin/mailman/listinfo/scmbug-users
