A
A
Andrew10000002012-05-03 15:55:56
Command line
Andrew1000000, 2012-05-03 15:55:56

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

2 answer(s)
Y
yadaya, 2012-05-03
@Andrew1000000

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\BootExecuteDo 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!

F
foxyovovich, 2012-05-03
@foxyovovich

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 question

Ask a Question

731 491 924 answers to any question