opus-nt/mods/[all]/embedded - enable page file/modscript.py

4 lines
286 B
Python
Raw Normal View History

2021-03-20 23:28:25 +00:00
for key in opusnt.regQueryKeys(opusnt.regTmpPath + "system"):
if key.lower().startswith(opusnt.regTmpPath.lower() + "system\\controlset"):
opusnt.runReg(["add",key+ "\\Control\\Session Manager\\Memory Management","/v","PagingFiles","/t","REG_MULTI_SZ","/d","?:\\pagefile.sys","/f"])