C
Confused
Something I've been wondering about but never remember to ask ...
1. In My Computer > Properties > Advanced > Environmental Variables
there is a section named System Variables in which PATHEXT is defined.
On my own system this consists of the following:
".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH"
My assumption was that the .EXE extension was there to allow one to
execute programs at the command-line without having to type the trailing
..EXE extension. If that's correct, why then can one not execute files
having any of the extensions listed?
2. My second question concerns "User Variables" and System Variables.
The difference seems obvious, but I remember having path-related
problems by adding a new path to User Variables. Adding a path to
System Variables always corrected the problem. Could someone explain
whether:
a) My memory sucks; or
b) The correct usage for these two.
Thanks.
1. In My Computer > Properties > Advanced > Environmental Variables
there is a section named System Variables in which PATHEXT is defined.
On my own system this consists of the following:
".COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH"
My assumption was that the .EXE extension was there to allow one to
execute programs at the command-line without having to type the trailing
..EXE extension. If that's correct, why then can one not execute files
having any of the extensions listed?
2. My second question concerns "User Variables" and System Variables.
The difference seems obvious, but I remember having path-related
problems by adding a new path to User Variables. Adding a path to
System Variables always corrected the problem. Could someone explain
whether:
a) My memory sucks; or
b) The correct usage for these two.
Thanks.