The usage of ForceChildren #4044
love-code-yeyixiao
started this conversation in
Documents and notes
Replies: 1 comment 1 reply
-
Does this also work when launching an app from the start menu or from a shortcut? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A marvelous usage based on this feature of ForceChilden.
We can write the following script in a batch file (.bat).
After running it, we will see that Explorer is restarted as a shell.
It doesn't look different, does it? But try launching a notepad using Run (Win+R).
You'll see that it's sandboxed, but we don't have a "forced process" set for Notepad, which is where the ForceChildern feature comes into play!
As you know, explorer can't act as a shell when it's sandboxed, but when it's in this state, even though explorer itself isn't sandboxed, its direct children (excluding UWP apps started through the DCOM interface) will be added to the sandbox we specified in the command.
That's the wonder of the new feature!
Beta Was this translation helpful? Give feedback.
All reactions