Results 1 to 2 of 2

Thread: A Vbscript code.

  1. #1

    Thread Starter
    Fanatic Member vivek_master146's Avatar
    Join Date
    Apr 2006
    Location
    Delhi,India
    Posts
    787

    A Vbscript code.

    I have heard from many people that this code would free up RAM when PC becomes sluggish:-

    FreeMem=Space(64000000) (saving it as .vbs)

    How its possible ?

    I think this code will just allocate 64 MB to FreeMem variable. So more 64 MB more will be occupied.

    Please explain. What the code actually does ?
    Dont rely only on your luck. Work hard until You get success.
    vb Code:
    1. Private sub Time_ispassing
    2. While Me.Notgetsuccess
    3. trygain=tryagain+1
    4. Me.workhard
    5. wend
    6. end sub

  2. #2
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: A Vbscript code.

    It uses lots of memory, and when the .vbs finishes that memory is released.

    I have no idea how that is supposed to free up other memory... the best assumption I can come up with is that (if that is the amount of 'free' memory is less than 64 MB) it will force Windows to put things that are currently in physical memory to the paging file - but it will bring them back automatically as needed.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width