I wanna write a bat file to set system variables on any windows system. My software which I made needs to set a path instead of asking the user to process the method I heard we can do this task using bat files so I tried multiple ways to set a path nut most of them are duplicates of all existing paths instead of adding new ones and some times it's removing all paths and keeping only the new path
setx Path "%Path%;c:ffmpeg"
which is duplicating all the existing path variable
I did read multiple Stackoverflow queries on this but none helped if ur testing on your system to check please save/make a copy of all ur paths first Thank you Eswar
I don't suggest you mess with system variables but if you want to store path from cmd use
setx Path "%Path%;C:yourpathhere" C:ffmpegin
I tested on windows 10 it worked for me Hopefully it works for u too!!
1.4m articles
1.4m replys
5 comments
57.0k users