Techist - Tech Forum - View Single Post - 32 bit OS RAM limitation.

Click Here to Login
View Single Post
Old 02-24-2009, 09:09 PM   #45 (permalink)
office politics
It's all just 1s and 0s
 
office politics's Avatar
 
Join Date: Jan 2004
Location: in the lab
Posts: 6,555
Send a message via MSN to office politics
Default Re: 32 bit OS RAM limitation.

this vbscript will generate a csv in the same folder that lists all device memory addresses in use. funny some starting addresses are greater than 4072644351 for my system. i only have two gigs of physical ram.

Code:
'http://www.cruto.com/resources/VBScript/vbscript-examples/hardware/memory/List-Device-Memory-Addresses.asp

'On Error Resume Next

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set colItems = objWMIService.ExecQuery _
    ("Select * from Win32_DeviceMemoryAddress")

txt = "Name,Starting Address,Ending Address" & vbcrlf

For Each objItem in colItems
    'Wscript.Echo "Ending Address: " & objItem.EndingAddress
    'Wscript.Echo "Name: " & objItem.Name
    'Wscript.Echo "Starting Address: " & objItem.StartingAddress
    'Wscript.Echo

    
    txt = txt & objItem.Name & "," & objItem.EndingAddress & "," & objItem.StartingAddress & vbcrlf

Next

set filesys = createobject("Scripting.FileSystemobject")

set file = filesys.createtextfile(".\devicememadds.csv")

file.write txt

file.close

set file = nothing

set filesys = nothing

msgbox "done"




edit - erf, my pc is assigning addresses close to the 4gb limit. i'll try this on a x64 box and compare
office politics is offline   Reply With Quote
 


Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 03:41 PM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2018, vBulletin Solutions, Inc.