0

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.

Ry-
  • 218,210
  • 55
  • 464
  • 476
TheMrRafus
  • 35
  • 1
  • 1
  • 6

1 Answers1

0

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

string appdata = System.Environment.GetFolderPath(
                       System.Environment.SpecialFolder.ApplicationData)
Rohit Vats
  • 79,502
  • 12
  • 161
  • 185