I am using the following to set an environment variable -
SETX test_env "C:\Tester1"
The test_env is correctly set, but the command prompt would not close. I tried executing the command directly in a command prompt rather than invoking a batch file that contains the SETX command. But in both the cases the command prompt hangs .
Can someone please tell me a way of closing the command prompt