- Mar
- 4
- 0
Problem: I'd like to change my PATH using a batch file.
I'm working in different Java, Ruby and Perl environments and I'd like to remove and to add parts of PATH.
My current approach is to do somethink like this
set f=%@fields[";",%PATH%]
for /L %i in (0,1,%@eval[%f-1]) do echo %@field[";",%i,%PATH%]
Is there a better - simpler - approach for that?
-st
I'm working in different Java, Ruby and Perl environments and I'd like to remove and to add parts of PATH.
My current approach is to do somethink like this
set f=%@fields[";",%PATH%]
for /L %i in (0,1,%@eval[%f-1]) do echo %@field[";",%i,%PATH%]
Is there a better - simpler - approach for that?
-st