VB Scripting
anyone know of the script that clears memory in Win2K?
a few years ago, i had this script. i thought it was simply "myspace(xxx)" where 'xxx' is a number like 50,000 (it depends on your computer). anyway, you're supposed to save it as a .vbs file, and it's a hardcore memory clearer.
any takers?
AI Summary
11 Comments
a memory clearer?? for what purpose?
OOOOOOOOOOOOOOOOOOOOOOPSS!!! MY bad..
well, i found the file on my home computer. i had the class spelled right, but maybe it's case-sensitive. i'll have to check out my work computer tomorrow.
This is only for Win2K or WinXP. I don't know whether it works for WinMe or before...
found the correct script. it's: Mystring = Space(20000000)
you can create this in Notepad. Just save the file as a .vbs file, like "Memory Refresh.vbs" and put it on your desktop.
To see it in action, open your Task Manager. Click the "Performance" tab. Take a note of the "Available" memory and the "System Cache." Double click the "Memory Refresh" script. Wait a bit. You'll see the Available memory drop to a couple thousand for a few seconds. Then it will suddenly jump up. Sometimes your available memory will double.
Adjust the number a few times to see what has the greatest affect. I added a zero to the above number and that recovered about 50000K for me.
if you haven't broken your machine, let me know how it goes.
you realize that Space(x) just returns a string x number of spaces long, right? so, basically this script will create a 20MB file in memory and then exit, hence freeing up that memory. what's the point?
the point, son, is that it creates a contiguous block of memory of that size. in effect, it defragments RAM.
you know, there used to be a program to do that. except, i figured out that it was just sending what was in RAM to the hard drive, and then sending it back. so, I guess it was doing SOMETHING, just not anything especially useful
well, this is a do-it-yourself-er
by