I used an environment variable that was named ABC and had the value C: / ABC.
In my code, I used @% ABC% / file.txt for the path to the file where I created a folder on drive C with the name ABC containing the file.txt file.
However, this does not recognize the environment variable.
Is there a way to do this short work, or do I need to manually read the System Environment variable in a separate environment variable using the Environment.GetEnvironmentVariable Method (String) in Visual Studio?
source share