Hi,
1) Changing Path for some given cmd session changes environment for the given session only (and its spawned processes). So in order to have an effect from changed Path value you must execute all subsequent commands from the same cmd session;
2) I am doubting that you are testing how cmd handles its environment... What is the actual task that you need to do?
3) > Below code also is not working:
It would help if you let us know what exactly does not work, what error do you have and all other details that might help any other person to understand the problem and try to help with the solution.