setting c:\pagefile.sys sizes to zero



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.

.


Quantcast