Answer the question
In order to leave comments, you need to log in
How to assign a command to execute after a reboot in Windows 7?
You must run the command at the beginning of Windows boot, similar to how chkdsk assigns a check.
But another command needs to be executed:
compact /c /sc:/*.*
Is there any way to assign it to be executed after a reboot, when there is full access to the file system?
Answer the question
In order to leave comments, you need to log in
1. Make a batch file with the necessary command (set of commands), put it in System32.
2. Write the name of the batch file in the registry key: HKLM\System\CurrentControlSet\Control\Session Manager\BootExecute
Do not touch the first line of the key.
3. Do not forget to delete after launch, or self-destruct at the first start =)
4. PROFIT!
by means of windows in any way.
only if you try to write a native application. described here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question