All Explorer operations can be performed from the command line as well. This way, it is quite trivial to e.g. restart Explorer from your own scripts.
The operations that are supported are:
Commands: | |
---|---|
None | Use the graphical interface |
/? | Shows how to use ShellDispenser |
/C | Closes Explorer |
/S | Starts Explorer |
/R | Restarts Explorer |
Verbosity: | |
/Q | Runs quietly (only shows warnings and errors) |
/EQ | Runs extra quietly (only shows errors) |
/SQ | Runs super-quietly (doens't show errors either) |
Options: | |
/FC | Forcefully close Explorer if gentle close not possible 1 |
/-FC | Ask if to retry closing Explorer if gentle close not possible 1 |
1) If the FC or -FC switch is not present, then the user's settings for forcefully closing Explorer as specified in the "Settings" window will take effect.
The possible exit codes from ShellDispenser are:
0 | The operation completed successfully |
1 | The operation completed with warnings |
2 | The operation didn't complete successfully |
255 | An unknown error has occured and ShellDispenser needed to close |