
标题: [文本处理] 求windows7 虚拟内存自动设置 命令 [打印本页]
作者: cssz 时间: 2018-5-12 09:35 标题: 求windows7 虚拟内存自动设置 命令
请教一下高手 windows7 让它自动设置虚拟内存 批处理命令怎么弄
作者: WHY 时间: 2018-5-14 15:24
Script to configure virtual memory page file size (PowerShell)
https://gallery.technet.microsof ... -configure-e8d85fee
作者: codegay 时间: 2018-5-14 17:11
VBS
Set Virtual Memory Pagefile to "system managed"
https://community.spiceworks.com ... e-to-system-managed
作者: codegay 时间: 2018-5-14 17:28
REG 文件- Windows Registry Editor Version 5.00
-
- [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
- "PagingFiles"=hex(7):63,00,3a,00,5c,00,70,00,61,00,67,00,65,00,66,00,69,00,6c,\
- 00,65,00,2e,00,73,00,79,00,73,00,20,00,31,00,30,00,32,00,34,00,20,00,31,00,\
- 30,00,32,00,34,00,00,00,00,00
复制代码
作者: codegay 时间: 2018-5-14 19:11
本帖最后由 codegay 于 2018-5-14 23:45 编辑
我试了一下nim代码,发现可以这样简单粗暴地读取和设置- import registry
-
- var path = r"SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management"
- var key = "PagingFiles"
-
- echo getUnicodeValue(path, key, HKEY_LOCAL_MACHINE)
-
- var val = r"c:\pagefile.sys 1024 2048"
- setUnicodeValue(path, key, val, HKEY_LOCAL_MACHINE)
复制代码
实际上windows是对注册表键值的各种类型描述非常复杂。我也不知道为什么实际实现的时候可以绕过那些类型的区别。
欢迎光临 批处理之家 (http://bbs.bathome.net/) |
Powered by Discuz! 7.2 |