Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9192589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:57:42+00:00 2026-06-17T20:57:42+00:00

I am trying to use 7-zip compression to create a zip of a sample

  • 0

I am trying to use 7-zip compression to create a zip of a sample file as given in the example
http://www.dotnetperls.com/7-zip
As the URL says, “you must specify “Copy if newer” or “Copy always” to copy files such as executables to the output directory.”

I found that when I use this code in a VS Project, I do get the option to specify “Copy if newer” when I see properties of 7za.exe in the properties window

But when I use in a VS Web site, I am unable to find this option. As a result, when I debug this program, it saying that its unable to find 7za.exe

string sourceName = "pdfSample.pdf";
string targetName = "pdfSample.gz";

ProcessStartInfo p = new ProcessStartInfo();
p.FileName = "7za.exe";

p.Arguments = "a -tgzip \"" + targetName + "\" \"" + sourceName + "\" -mx=9";
p.WindowStyle = ProcessWindowStyle.Hidden;

try
{
    Process x = Process.Start(p);
    x.WaitForExit();
}
catch (Exception ex)
{
    Console.Write(ex.ToString());
} 

Any idea why there is no “Copy if newer” option in case of VS Web site?

Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T20:57:43+00:00Added an answer on June 17, 2026 at 8:57 pm

    Personally, I would never dare to start a new process from within an ASP.NET application.

    The reason is that I don’t know whether the process may or may not show up some windows or do other things like single-instance.

    If I had to solve your requirement, I would use a class library to work with 7zip files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying use mod_rewrite to rewrite URLs from the following: http://www.site.com/one-two-file.php to http://www.site.com/one/two/file.php The
I'm trying to use Node.js to create a zip file from an existing folder,
I'm trying to use the following code to create a zip file from a
am trying to use javascript for custom styled select boxes from www.gerrendesign.com/entry_images/selectboxdemo.zip and as
http://www.datatables.net/releases/DataTables-1.9.3.zip I am trying to use the above plugin. I call function paging() at
I'm trying to use php to create a zip file (which it does -
I am trying to use the LZMA SDK to create a zip archive (either
I'm trying to utilize 7za.dll together with this Delphi wrapper - http://www.progdigy.com/?page_id=13 Having difficulties
I'm trying to use 7-Zip to zip up a file via the system() function
I am trying to use the zipfile module in Python to create simple zip

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.