I am trying to install PySpark in Anaconda on a Windows 10 laptop. I'm running numerous problems, but one is that the CMD interpreter searches %PATH% for files and finds those without extensions before finding those with extension .CMD
, e.g., pyspark
and pyspark2
. The extensionless files are typically Bash files and therefore not meant for CMD (described here). Many such filenames have counterparts with the same filename stem but also with extension .CMD
. These are obviously meant for use by the Windows's CMD interpreter.
From web searching, I found that %PATHEXT% determines what extensions to include when searching %PATH%. My %PATHEXT% is .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
. Is there any way to modify %PATHEXT% to exclude extensionless filenames?