So, I have this batch file that supposedly appends my script to the path variable
@echo OFF
setx path "%path%;%cd%\\script.py"
But I e
setx path c:\whatever
For path
setx appends the path specified to the existing path. You don't specify the existing paths, only the new one. It also won't add a path twice.
Here's something I use
%windir%\system32\setx path %~sdp0 > "%temp%\filter.tmp"
The redirection hides error messages if I try and add twice. See the call /?
command if you don't know what %~sdp0
is