Question

I want to extract a zip to %appdata%\subfolder. When I put a route such as C:\Users\User\AppData\Roaming\subfolder, it extracts ok; I want to do this for each %appdata% of the client systems.

I’m using SharpZipLib to extract.

Was it helpful?

Solution

You can get %appdata% in your code using SpecialFolder enum -

string appdata = System.Environment.GetFolderPath(
                       System.Environment.SpecialFolder.ApplicationData)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top