Skin4112 Posted March 29, 2015 Share Posted March 29, 2015 No doubt this has to do with the registry. Can AutoIT be used to reproduce what chkdsk does by starting something like sysinternals command line based 'sdelete.exe' before the OS kicks in? At next boot the funky blue screen would show up with some seconds count down and then the program would run. I have Ultimatedefrag that allows for pre-OS defragging/optimizing that does the same thing. Before windows actually boots, a drive can be defragged/optimzed during that funky blue screen. I'm having trouble getting rid of a 'log' file at shutdown. Seems the OS shuts down faster then the Autoit script I use to shutdown my OS and I get an error message that shows up and immediately dissappears. I've no idea what the problem is. Too fast to read. So I was thinking, at shutdown, I could read the 'log' file size, determine it was too big, and then force (Via Registry) the OS at next boot to wipe and delete the file with something like 'sdelete.exe'. Surely there is a way to do this right? Any suggestions appreiciated... Thanks Link to comment Share on other sites More sharing options...
kaisies Posted March 29, 2015 Share Posted March 29, 2015 You can add a program to @startupdir (I can't remember the exact macro) and there is a switch for runonce Link to comment Share on other sites More sharing options...
Spider001 Posted March 29, 2015 Share Posted March 29, 2015 https://msdn.microsoft.com/en-us/library/windows/desktop/aa376977%28v=vs.85%29.aspx Link to comment Share on other sites More sharing options...
Skin4112 Posted April 1, 2015 Author Share Posted April 1, 2015 Thanks for the replies folks. Too bad the answer was the difference between Run and RunWait. Embarrassing I tells ya. Spider, Thanks for the link. I've still an interest in all that. Having that bit of background info will help in future searches for more info. Link to comment Share on other sites More sharing options...
AZJIO Posted April 2, 2015 Share Posted April 2, 2015 HKLMSYSTEMCurrentControlSetControlSession Manager BootExecute autocheck autochk /r ??C: RegWrite("HKLM\SYSTEM\CurrentControlSet\Control\Session Manager", "BootExecute", "REG_EXPAND_SZ", 'autocheck autochk /r \??\C:') autocheck autochk /r ??<drive_letter>: My other projects or all Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now