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.
Regards, /Alex [Community Hero] ____ [Community Heroes] are not employed by SmartBear Software but are just volunteers who have some experience with the tools by SmartBear Software and a desire to help others. Posts made by [Community Heroes] may differ from the official policies of SmartBear Software and should be treated as the own private opinion of their authors and under no circumstances as an official answer from SmartBear Software. The [Community Hero] signature is used with permission by SmartBear Software. https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame ================================