I tried system("set path=my_directory") but in vain.
Could someone show me the code how to set path in console application ?

Thanks.