I've created a batch (with included VB-script) to set the pagefile to a predefined size on the systemdrive and remove it from all other partitions. The problem is that it only works sometimes and not always. What's wrong with it? The reason for using a batch-file instead of just calling a VB-script is that if the pagefile happens to be placed on some other partition/drive, it will only resize it where it is. Using only the pagefileconfig.vbs present in system32 will not change/delete the pagefi