I have a path for folder containing curl.exe file (C:\My\Custom\Directory\
) added to Path Environment Variable. The problem is that when I call curl
from command line, it runs another curl executable than the intended one. When I traced which executable was running using Process Explorer, I found it in C:\Windows\System32\
(may be installed after the new Windows Update). The problem with this is that this executable doesn't support some features I use.
What I need to do is to override curl
to call curl.exe from C:\My\Custom\Directory\
instead of calling it from C:\Windows\System32\
.
Notes:
I know I can use "C:\My\Custom\Directory\curl.exe"
in command line, but I want to use curl
only to call curl.exe from my custom directory.
Also I can't delete C:\Windows\System32\
from the Path variable because it contains other important executable, and I think I can't.