setting c:\pagefile.sys sizes to zero

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



hi,

I creating a script in which i need to set the initial and maximum size
of c:\pagefile.sys to zero.

I'm able to set them to anything but zero by using the usual code of:

objPageFile.Name= "c:\pagefile.sys"
objPageFile.InitialSize = 2046
objPageFile.MaximumSize = 4092
objPageFile.Put_

and i can get them down down to as low as 2 for initial and maximum
size.

however when i try and set them to zero it doesnt happen.

any ideas how this can be done?

thanks.

.



Relevant Pages

  • Re: AIX 5.3 disaster recovery fro AIX newbie
    ... >are you in the server in maint mode? ... I know just because I cannot get in and examined the script it ran. ... one of the scripts smoked /etc/passwd file, to zero. ... If you are not the intended recipient ...
    (AIX-L)
  • Re: Why must I chomp a variable set in a script?
    ... If they are of zero size, ... it is supposed to trigger the email program to notify the users. ... have to "chomp" the variable to get this to work? ... like the value was supplied from the command line, it is set in the script. ...
    (perl.beginners)
  • Re: problem with a file processing script
    ... but I am far from a script writer, and I recently run into a little ... if the file I am looking for is zero ... the $NEWNUM it's because the extension the third party software is ... print that $EQFILE existed but was empty ...
    (comp.unix.shell)
  • Re: problem with a file processing script
    ... but I am far from a script writer, and I recently run into a little ... if the file I am looking for is zero ... the $NEWNUM it's because the extension the third party software is ... print that $EQFILE existed but was empty ...
    (comp.unix.shell)
  • Re: converting file to excel problem
    ... Shawn wrote: ... > We are using the below script to convert a file into excel format. ... > problem is that my file contains ssn in which they can start with zero. ...
    (comp.lang.perl.misc)