Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 zip 解压缩到%appdata%\subfolder. 当我放置诸如 之类的路线时C:\Users\User\AppData\Roaming\subfolder,它可以提取;我想为每个%appdata%客户端系统执行此操作。
%appdata%\subfolder
C:\Users\User\AppData\Roaming\subfolder
%appdata%
我正在使用 SharpZipLib 进行提取。
您可以使用枚举%appdata%进入您的代码-SpecialFolder
SpecialFolder
string appdata = System.Environment.GetFolderPath( System.Environment.SpecialFolder.ApplicationData)