|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Free Web 2.0 Code Generator! Generate data entry and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
WSH - Getting the system memory and hard disk space
Hi
I have the following requirement that I need to fetch the system memory from the system and needs to check whether it has minimum 512 MB. I have read that FileObject Can be used for that purpose. But it returns only Fixed , unknown , removable and CD ROM and not RAM. Please let me know what is the best way to fetch the system memory. My Requirement is I need to check the minimum memory and hard disk size before pushing either the install script or upgrade script. Please help me out to solve the issue ASAP. Your help is appreciated.Thanks. |
|
#2
|
||||
|
||||
|
__________________
Come JOIN the party!!! Quote of the Month: Stupidity: Quitters never win, winners never quit, but those who never win AND never quit are idiots. Questions to Ponder: If man evolved from monkeys and apes, why do we still have monkeys and apes? iif([sarcasm]=true,iif([you have to ask]=true,"didn't work","ha ha ha"),"not sarcasm") copyright© 2008 sbenj69 |
|
#3
|
||||||
|
||||||
|
Try this
Quote:
Insert the following code in your vbs script to find memory and drive space: vb Code:
Of course you'll need to tweak this for your environment, and you might only want the free space on the C: drive. Last edited by mehere : May 14th, 2008 at 10:47 AM. Reason: added code tags ... please use them in the future when posting code |
|
#4
|
||||||
|
||||||
|
Quote:
Here is a cleaned up script that should work for you: vb Code:
Last edited by mehere : May 14th, 2008 at 10:47 AM. Reason: added code tags ... please use them in the future when posting code |
|
#5
|
||||
|
|
||||
|
Heh. I actually just wrote an article for ASP Free that addresses this very question. I should be submitting it in the very near future. I'll post back here when the article goes live.
__________________
Click the image if at any point you don't like my decision.Scripting problems? Windows questions? Ask the Windows Guru! |
![]() |
| Viewing: ASP Free Forums > System Administration > Windows Scripting > WSH - Getting the system memory and hard disk space |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|