Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Beej126 committed Feb 13, 2018
1 parent 1b20a4e commit 2d1135e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ args - Optional command line arguments to prog
```

## Motivation
Initially looking to **seamlessly** launch DevEnv.exe to edit files from command line, no matter whether DevEnv or cmd is currently elevated. Notably, DevEnv is conveniently single instance by default. There are basically 4 possible combinations of elevation going from the current cmd.exe process to the possibly running DevEnv.exe process:
Looking to launch DevEnv.exe to edit files from command line, ***with minimal UAC prompting***, no matter whether DevEnv or cmd is currently elevated. Notably, DevEnv is conveniently single instance by default. There are basically 4 possible combinations of elevation going from the current cmd.exe process to the possibly running DevEnv.exe process:

cmd | DevEnv | transition required
--- | --- | ---
low | high | this is kinda the main typical route
high | low | this required the shifting down trick, i.e. lauching by proxy thru another low process (e.g. explorer.exe)
low | low | really nothing to be done here
high | high | nor here
low or high | not running | launch with cmd.exe's current elevation
low | high | this is kinda the main typical route; no way to avoid UAC prompt
high | low | this required the shifting down trick, i.e. lauching by proxy thru another low process (e.g. explorer.exe) **no UAC prompt required**
low | low | really nothing special to be done here, just launch with cmd.exe's current elevation
high | high | ditto
either | not running | ditto

## Attribution
Taking no credit here.
Expand Down

0 comments on commit 2d1135e

Please sign in to comment.