VB Script / Shell script for page file move from c to d
For win7 disk optimizations we need to implement moving the page file. does any one have Vb Script for moving page file from c to d. it should check whether d drive is present if yes should execute.Vijay Kumar
February 23rd, 2011 1:21am
change the value in the registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ExistingPageFiles
You have to reboot, because closing/deleting a pagefile is not supported in Windows. After the reboot Windows uses the new pagefile."A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
February 23rd, 2011 9:18am
hi andre,
thanks for ur sugg., if we change the setting in reg will go to another drive but existing will be present in c drive c:\pagefile.sys.Vijay Kumar
February 23rd, 2011 9:23am
What is the value of "PagingFiles" in the same registry key."A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
February 23rd, 2011 9:30am
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PagingFilesVijay Kumar
February 24th, 2011 2:48am
I need the value. You posted the name where it is located. What does it include?
"A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
February 24th, 2011 9:59am
here the reg key [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PagingFiles and path should be d:\pagefile.sys.Vijay Kumar
March 1st, 2011 1:17am
change the value to D:\Pagefile.sys 0 0 . This sets the pagefile to D: with automatic size. Replace the 2 "0" with a mind/max value you want."A programmer is just a tool which converts caffeine into code" CLIP- Stellvertreter http://www.winvistaside.de/
Free Windows Admin Tool Kit Click here and download it now
March 1st, 2011 10:09am