Click here to Skip to main content
15,890,043 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: So I have returned to the Dark Side (rant) Pin
dandy7213-May-20 3:28
dandy7213-May-20 3:28 
GeneralRe: So I have returned to the Dark Side (rant) Pin
dandy7213-May-20 6:35
dandy7213-May-20 6:35 
GeneralRe: So I have returned to the Dark Side (rant) Pin
David O'Neil14-May-20 6:36
professionalDavid O'Neil14-May-20 6:36 
GeneralCoverity Scan for Visual Studio / C++ Pin
Greg Utas12-May-20 14:14
professionalGreg Utas12-May-20 14:14 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
Mircea Neacsu12-May-20 14:47
Mircea Neacsu12-May-20 14:47 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
Jon McKee12-May-20 16:05
professionalJon McKee12-May-20 16:05 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
Stuart Dootson13-May-20 1:07
professionalStuart Dootson13-May-20 1:07 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
kalberts13-May-20 1:42
kalberts13-May-20 1:42 
Stuart Dootson wrote:
SET PATH=<path to Coverity's bin folder>%PATH%
That will update the path for the current command window only. As soon as you close that window, your path update is lost.

You can use SETX insttead of SET. SETX updates the path value in the registry, but remember that already running processes will not have their path changed. Updates apply to processes (including command windows) started/opened after you did the SETX.

I never use neither SET nor SETX! When I found Rapid Environment Editor[^], I never turned back. With REE, you can reorder path entries by dragging. You can drag any environment value between the user specific part and the system part. When adding entries e.g. to the path, you can select it by navigating, rather than typing a long path. REE is highly recommended!

(SETX can do things that REE cannot, e.g. update an environment variable on a remote system, or update from a registry value. I never had a need for such functionality.)

Clarification:
Window-born applications may be programmed to look up, in the registry, path and other environment variables on every use. They will get the updated value as soon as you have saved it (either by SETX or REE). Few Windows programs make use of path and environment variables; they rather have their own registry entries. Those using path/environment are mostly *nix-born software that knows nothing about the registry, and they are mostly command line programs. At startup, command.exe initializes its environment from the registry, and command line programs inherit this environment in the *nix style, not knowing where the values came from.

A final note: If you prefer to write in lowercase, you can write 'path' (and 'set'/'setx') rather than uppercasing them. Case sensitivity is a *nix artifact. When you use set/setx to create a new environment variable, you may want to use upper, lower, camel, Pascal or some other casing convention, that will be preserved - just like with NTFS file names. In use, you can case differently.
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
Greg Utas13-May-20 1:46
professionalGreg Utas13-May-20 1:46 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
Stuart Dootson13-May-20 2:30
professionalStuart Dootson13-May-20 2:30 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
Greg Utas13-May-20 2:12
professionalGreg Utas13-May-20 2:12 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
Stuart Dootson13-May-20 2:38
professionalStuart Dootson13-May-20 2:38 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
Greg Utas13-May-20 2:54
professionalGreg Utas13-May-20 2:54 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
Greg Utas13-May-20 3:09
professionalGreg Utas13-May-20 3:09 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
Stuart Dootson13-May-20 3:22
professionalStuart Dootson13-May-20 3:22 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
kalberts13-May-20 3:51
kalberts13-May-20 3:51 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
Stuart Dootson13-May-20 4:47
professionalStuart Dootson13-May-20 4:47 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
kalberts13-May-20 5:25
kalberts13-May-20 5:25 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
User 4041113-May-20 20:41
User 4041113-May-20 20:41 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
Greg Utas14-May-20 0:17
professionalGreg Utas14-May-20 0:17 
GeneralMessage Closed Pin
14-May-20 0:25
User 4041114-May-20 0:25 
GeneralRe: Coverity Scan for Visual Studio / C++ Pin
Greg Utas14-May-20 0:33
professionalGreg Utas14-May-20 0:33 
GeneralSo I am a little depressed by my COVID lockdown weight gain... PinPopular
DRHuff12-May-20 5:47
DRHuff12-May-20 5:47 
GeneralRe: So I am a little depressed by my COVID lockdown weight gain... Pin
den2k8812-May-20 5:51
professionalden2k8812-May-20 5:51 
GeneralRe: So I am a little depressed by my COVID lockdown weight gain... Pin
Mike Hankey12-May-20 6:13
mveMike Hankey12-May-20 6:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.