PDA

View Full Version : Get System32



NewsArchive
10-17-2011, 12:43 AM
Is there a way to get the System folder? I see [WIN] but it is dangerous to
code System32 in case it is a 64 bit environment.

So is there a variable to be used? Cannot see any way of doing this
reliably.

TIA

John Fligg

NewsArchive
10-17-2011, 12:44 AM
Hi John,

> Is there a way to get the System folder? I see [WIN] but it is dangerous
> to code System32 in case it is a 64 bit environment.
>
> So is there a variable to be used? Cannot see any way of doing this
> reliably.

The built-in runtime variable %SYS32DIR% always holds the Windows System
folder.

Friedrich

NewsArchive
10-17-2011, 12:44 AM
Thanks Friedrich - just found the page with the variables defined.

Is this the same for win64 then? Google says on a 64 bit machine it is
called sys64 not sys32?

Thanks

John

NewsArchive
10-17-2011, 12:45 AM
Hi John,

> Is this the same for win64 then? Google says on a 64 bit machine it is
> called sys64 not sys32?

I don't have either Sys32 or Sys64 folders on my 64bit machines. I have
System, System32 and SysWOW64. I only have one file in System so I think
that may be a 16bit thingy;)

Unless you are distributing 64bit dlls etc. (which I presume goes into
SysWOW64) you use the System32 folder:)

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
10-17-2011, 12:45 AM
No. Microsoft has native support for World of Warcraft<g>

> (which I presume goes into
>SysWOW64)

Jeff Slarve
www.jssoftware.com
www.twitter.com/jslarve

NewsArchive
10-17-2011, 12:46 AM
Arnor,

> I don't have either Sys32 or Sys64 folders on my 64bit machines. I have
> System, System32 and SysWOW64. I only have one file in System so I think
> that may be a 16bit thingy;)
>
> Unless you are distributing 64bit dlls etc. (which I presume goes into
> SysWOW64) you use the System32 folder:)

Keep in mind you're talking about Microsoft!<g>

64bit goes in System32 and 32bit goes in SysWOW64. Remember that when
you run a 16bit program in a 32bit OS that you get the "Windows on
Windows" (WoW) layer. Just think how much fun it will be when 128bit
Windows is released... System32x4, SysWOWIE and maybe SysWhatever?!

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://CreativeReporting.com


Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
10-17-2011, 12:46 AM
Hi Lee,

>> Unless you are distributing 64bit dlls etc. (which I presume goes into
>> SysWOW64) you use the System32 folder:)
>
> Keep in mind you're talking about Microsoft!<g>
>
> 64bit goes in System32 and 32bit goes in SysWOW64. Remember that when
> you run a 16bit program in a 32bit OS that you get the "Windows on

Of course - I just realized that! Been working with 32/64bit registry
entries and should have picked up the wow factor;)

Best regards


--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com
Icetips product subscriptions at http://www.icetips.com/subscribe.php

NewsArchive
10-17-2011, 12:47 AM
Arnor,

> Of course - I just realized that! Been working with 32/64bit registry
> entries and should have picked up the wow factor;)

It's as confusing as MS could make it!

Yep 32=64 and 64=32 - CLEAR AS MUD!<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://CreativeReporting.com


Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
10-17-2011, 12:47 AM
And don't forget that the Windows partition containing boot.ini (pre-Vista)
is the system volume/partition
.... and the partition containing System32 is the boot partition...

Jane Fleming

NewsArchive
10-17-2011, 12:48 AM
Jane,

> And don't forget that the Windows partition containing boot.ini (pre-Vista)

See solution attached...<g>

--
Lee White

RPM Report Viewer.: http://www.cwaddons.com/products/rpm/
RPM Review........: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Report Faxing.....: http://www.cwaddons.com/products/afe/
---Enroll Today---: http://CWaddons.com

Enhanced Reporting: http://CreativeReporting.com


Product Release & Update Notices
http://twitter.com/DeveloperPLUS

NewsArchive
10-17-2011, 12:49 AM
Hi John,

> Thanks Friedrich - just found the page with the variables defined.
>
> Is this the same for win64 then? Google says on a 64 bit machine it is
> called sys64 not sys32?

The %SYS32DIR% variable takes care of it. If you install 64-bit
applications (that means, you run the setup.exe in 64-bit mode) then it
points to the 64-bit System32 folder. If you install 32-bit applications
(the default) then it points to the 32-bit version of the System32 folder.

Friedrich

NewsArchive
10-18-2011, 12:20 AM
My prescription ran out.

--
Russell B. Eggen
www.radfusion.com