I created a 7ZIP archive, no errors, but I do not even understand where is this archive, how can I specify path, or at least make it to be created together, where is the file?
Can you please provide the programming language you are using to create the 7ZIP archive and any relevant code snippets?
C#, code is used from the aspose documentation, I just started studying it
using (FileStream sevenZipFile = File.Open("archive.7z", FileMode.Create))
{
using (var archive = new SevenZipArchive())
{
archive.CreateEntry("data.txt", path); //path its D:/data.txt
archive.Save(sevenZipFile);
}
}
Hello @HeckerMaster ,
archive.7z
you created is located in working directory of your application. You can specify full path, e. g.
File.Open(@"C:\Users\User\Documents\archive.7z", FileMode.Create)
thank you, work