Connecting Tech Pros Worldwide Forums | Help | Site Map

How to get available physical memory using javascript/VBScript NOT USING WMI ??

Newbie
 
Join Date: Sep 2009
Posts: 2
#1: Sep 9 '09
How to get available physical memory using javascript NOT USING WMI ?? any other way?
I need to achieve this by using javascript/vbscript and I cannot use WMI. Please let me know the possibilities.

Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,662
#2: Sep 10 '09

re: How to get available physical memory using javascript/VBScript NOT USING WMI ??


I’m not aware that javascript can do that at all.
sumittyagi's Avatar
Expert
 
Join Date: Mar 2007
Location: New Delhi, India
Posts: 198
#3: Sep 10 '09

re: How to get available physical memory using javascript/VBScript NOT USING WMI ??


Question 1:- Why do you want to get available physical memory for the client. I can unerstand if someone wants know physical memory of the server (to know how much space is left to save/process data); But client acts only the role of presentation layer and submiting requests to the server.

Question 2:- Why a client will allow accessing its physical memory when it knows there are lots of malicious scripts are waiting for such information.

Question 3:- Why javascript will ask for physical memory when it is a client side scripting language.

Answer the above three questions and you will get your answer.
Newbie
 
Join Date: Sep 2009
Posts: 2
#4: Sep 14 '09

re: How to get available physical memory using javascript/VBScript NOT USING WMI ??


Hi,

Thanks for the explanation. You are really an expert.

1.)The requirement was to check if the user is a particular domain, physical memory, IP address, etc. This helps the end users to know in which domain they are. Moreover, they come to know the available physical memory which they compare to the minimum requirements as new applications are being pushed to the users desktops.

2.) Client may not allow to fetch the data directly, and that is the reason I was asking for a back door entry.

3.) The motive is to get these details. If there is any better way to get the client's machine details, please let me know. That'll help me.


Thanks,
Praveen Ghantasala.


Quote:

Originally Posted by sumittyagi View Post

Question 1:- Why do you want to get available physical memory for the client. I can unerstand if someone wants know physical memory of the server (to know how much space is left to save/process data); But client acts only the role of presentation layer and submiting requests to the server.

Question 2:- Why a client will allow accessing its physical memory when it knows there are lots of malicious scripts are waiting for such information.

Question 3:- Why javascript will ask for physical memory when it is a client side scripting language.

Answer the above three questions and you will get your answer.

gits's Avatar
Moderator
 
Join Date: May 2007
Location: Munich, Germany
Posts: 4,136
#5: Sep 15 '09

re: How to get available physical memory using javascript/VBScript NOT USING WMI ??


as it was already said ... you cannot achieve that with JavaScript ... since JavaScript is intentionally designed to influence the behaviour of webpages or the browser and especially to not! do things that a client typically will not allow. So thinking of a backdoor might be an idea but JavaScript itself will not have such possibilities. Having said this, you could imagine that the browsers itself might have access to specific information at the client and so there might be ways when you could rely on some specifics ... like specific browsers and/or browser settings ... for example you might use the nsIMemory interface in mozilla browsers to alloc or free memory, which will rely on enhanced privileges that a user has to allow before. so this is only recommendable when you are in a closed einvironment like an intranet or similar ... where you could control such things. And as you could see you would have to implement that fully different in IE since such things basicly would need to use very browser-specific APIs ... so for public webapplications that wouldn't be an option ... or at least no option that would work reliable.

kind regards
Reply