更改使用批处理虚拟内存 [英] Changing virtual memory using batch
问题描述
我使用批处理来提高电脑的性能做节目,我现在将要来到,我需要编辑的 Windows虚拟内存的大小,我可以在code改变。如果需要,它可以在一个.reg做,我可以做批处理文件执行。任何一个可以帮助。我的操作系统是Windows 7旗舰版32位
I am making a program using batch to boost pc performance and I have now come to the stage where I need to edit windows virtual memory to a size that I can change in the code. if needed it can be done in a .reg as I can make the batch file execute it. can any one help. My os is windows 7 ultimate 32bit
推荐答案
从超级用户重复的主题。
Duplicate thread from Super User.
<一个href=\"http://superuser.com/questions/689066/changing-virtual-memory-using-batch/\">http://superuser.com/questions/689066/changing-virtual-memory-using-batch/
下面是我做我的,更容易比一个.reg文件注册表存储这个领域为十六进制BLOB编辑。还包括一个双页面文件的情况下,如果需要的话删除 D:\\的pagefile.sys 4096 4096
为一个C:\\页面文件
Here is how I do mine, much easier to edit than a .reg file as the registry stores this field as a hex blob. Also included a dual page file scenario, if need be delete , d:\pagefile.sys 4096 4096
for a single c:\ pagefile.
start /wait /b powershell -command "Set-ItemProperty -Path 'registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management' -Name 'PagingFiles' -Value 'c:\pagefile.sys 1024 1024, d:\pagefile.sys 4096 4096'"
#
下面是相同的设置注册表版本,但你可以看到它不能直接编辑。
Here is registry version of same settings, but as you can see it cannot be edited directly.
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,2c,00,20,00,64,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,34,00,30,00,39,00,36,00,\
20,00,34,00,30,00,39,00,36,00,00,00,00,00
对于一个真正的间歇法,REG.EXE可能是PowerShell的剪断的替代品。但是,语法是直线上升的二进制。见JRV的最后一篇文章在这个线程
For a true batch method, reg.exe might be an alternative to the powershell snip. But the syntax is straight up binary. See JRV's final post in this thread
<一个href=\"http://social.technet.microsoft.com/Forums/scriptcenter/en-US/03ba4174-78ee-45ee-aa26-d8a0eb610f85/add-reg-key-to-registry-with-hex-data\" rel=\"nofollow\">http://social.technet.microsoft.com/Forums/scriptcenter/en-US/03ba4174-78ee-45ee-aa26-d8a0eb610f85/add-reg-key-to-registry-with-hex-data
这将需要重新写出来与大家做任何设置的确切十六进制。
This would need be re-written with the exact hex of whatever settings you make.
REG ADD "HKCU\Software\Microsoft\Internet Explorer\Toolbar\ShellBrowser" /v "{83E8BF99-F3C0-4475-B453-9F9E8E4548C3}" /t REG_BINARY /d 09bfe883c0f37544b4539f
这篇关于更改使用批处理虚拟内存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!