I can Set variable in cmd by
then If I press set command then I can see that variable.
Now I want to set that variable using c#. Can any body tell me how to do that?
I had also tried
But not worked.
It does work, but the variable is not exported to any other command window. It only exists within the environment of that application.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)