Today I made a few small improvements to SprintDLL. I noticed while testing some example scripts that supplying both the type and unit for a size caused a parse error. Apparently I forgot a SkipWhitespace() call, so the parser got a blank where it was supposed to get a comma or a size modifier. I fixed that oversight, so allocsize ... as ... in ... now works as intended.
Next, I added an "instruction" called // that does absolutely nothing, so starting a line with that makes it a comment. Due to how line parsing works, including a semicolon on a comment line (like any line) will start a new instruction, so it's not currently possible to have semicolons in comments.
Finally, I realized that it might be helpful to have a SprintDLL run return information to a script written in a different language. Therefore, readslot's "The value in slot name is value" could be cumbersome. readslot now has a /raw switch that causes it to only print the value on its own line.
These changes are live on GitHub and released as v1.1.
Hi, Ben, great tool!
ReplyDeleteCould you help me with modifying your script from: [https://superuser.com/questions/1044050/configuring-windows-8-8-1-10-file-history-via-command-line] ? I need to set "Save copies of files" to "every 3 hours" and "Keep saved versions" to "3 months"
I've spent hours analyzing [https://github.com/tpn/winsdk-10/blob/master/Include/10.0.16299.0/um/FhCfg.h] ,[https://docs.microsoft.com/en-gb/windows/desktop/api/fhcfg/] and other docs but had not found how these values could be set
Hi Pavel! Sorry for the long wait. I addressed this in today's post: https://fleexlab.blogspot.com/2019/05/extending-sprintdll-file-history-example.html
Delete