Created
September 9, 2020 19:19
-
-
Save csharpforevermore/93aa52cab56ad8c7d6fbb1281a19b48d to your computer and use it in GitHub Desktop.
C# - DotNet - Get a folder to save files in
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// C:\Users\cshar\AppData\Local\Temp\tmp4550.tmp | |
Path.GetTempFileName(); | |
// C:\Users\cshar\AppData\Roaming\DateLinks.csv | |
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "DateLinks.csv"); | |
// See https://www.mikesdotnetting.com/article/302/server-mappath-equivalent-in-asp-net-core for DotNetCore method |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment