How do you do this?

I have to run 32 bit CCleaner in 32 bit windows, but sometimes in 64 bit windows, I still mess up & make a mistake & run 32 bit CCleaner.

Having to have both 32 & 64 bit means there is greater chance for err, & also that I have more files...

Does anyone know any scripts, programs, or SFX commands I can use automatically determine if an OS is 32 or 64 bit, then launch the correct version of CCleaner in a folder?

Ideally, I would love to be able to use a RAR SFX command, but I am open to ideas & suggestions for other apps/scripts/ideas as well.

If u know any way(s) to pull this off, please enlighten me! I am stumped!

on a 64bit OS, even if you manually launch the 32bit CCleaner.exe, it will launch CCleaner64.exe

You are doing it wrong ! !

CCleaner does the job all by itself.

I have just downloaded the latest Portable CCleaner and unzipped it.

In the same folder are CCleaner.exe and CCleaner64.exe

When I double click on CCleaner.exe I actually launch CCleaner64.exe.

As a double check I renamed CCleaner.ini as CCleaner#ini and relaunched CCleaner.exe

This time it was again CCleaner64.exe - but this time a clean start offering to save cookies.

on a 64bit OS, even if you manually launch the 32bit CCleaner.exe, it will launch CCleaner64.exe

I am going to give up posting replies if I see you logged in ! ! !

I check the forums frequently, and deep into the night :lol: (It is 03:06 AM right now :o)

To answer the OP's question, you can check if %PROCESSOR_ARCHITECTURE% is AMD64 or not.

To answer the OP's question, you can check if %PROCESSOR_ARCHITECTURE% is AMD64 or not.

Does this also apply if the CPU came from Intel ?

How about testing for the presence of the folder SysWow64

IF EXIST "%WINDIR%\SysWOW64" start CCleaner64.exe

IF NOT EXIST "%WINDIR%\SysWOW64" start CCleaner.exe

Does this also apply if the CPU came from Intel ?

Yes. The "x86-64" architecture is commonly referred to as AMD64 because AMD invented it, even when talking about Intel processors.

Checking for the presence of SysWoW64 is a hack, and might stop working in the next version of Windows ;)

(Intel's 64-bit architecture is the Itanium, which failed in the consumer market because it lacks compatibility with 32- and 16-bit instructions - which is also the reason they created UEFI since the standard BIOS is 16-bit only)

A bit off topic but shouldn't UEFI be going mainstream soon?

A bit off topic but shouldn't UEFI be going mainstream soon?

I'm still waiting. may arrive in 2011 :lol:

That link says weird things... "At the moment it can be 25-30 seconds of boot time before you see the first bit of OS sign-on"...wtf?

I think they mean "It can be 25-30 seconds before you are able to log into your computer after turning it on"

Not really true on hardware designed for your system, but I have seen such things on some slower laptops and the like.

. . it can be 25-30 seconds of boot time before you see the first bit of OS sign-on"...wtf?

I think they mean "It can be 25-30 seconds before you are able to log into your computer after turning it on"

Not really true on hardware designed for your system, but I have seen such things on some slower laptops and the like.

I just now timed a cold boot-to-logon, 1:35 -- quite slow according to that story. :D

____________________________________________________________________________________________

Updated next day: This morning's bootup was 51 secs. It had more pep after a full night's rest. :)

Time for an upgrade? In that amount of time I can cold boot and be back on these forums :lol:

It's Vista Basic, 3 yrs old with a 2 Ghz Celeron 440, RAM maxed out at 2 Gigs, so I can't upgrade. It'll become a backup unit in November when I spring for a quad core box with 8 Gigs RAM. Prices drop like a stone in November, so I gotta wait till then cos I'm a bargain hunter. :)

As a realist, I'm not expecting UEFI to be on the new unit.

Black Friday deals? :P

Black Friday deals? :P

Yup, only anymore it's black November pre-Thanksgiving deals. Expect to see the bargains beginning Sunday, Oct 30.

I love black friday!

How powerful a processor do you need for it to recognize anything larger than 6 gigs of installed ram? (I used to know but I forgot.) :huh: