Process.Start Method (ProcessStartInfo)

  • Thread starter Thread starter nologo
  • Start date Start date
N

nologo

language: c#
Visual Studio

Hi,

im using:
ProcessStartInfo psiOpt = new ProcessStartInfo(@"cmd.exe", @"/c 7za a
archive%DATE:/=_%.zip c:\temp");
combined with 7zip.exe to create an archive of files.
I would like to create the file name using %1 parameter (archive%1), i
would like to use a string builder for the file name..how do i pass
that string to %1?

Cheers
 
If you mean %1 as in the command line parameters to your console app (or
windows app for that matter), then look at Environment.GetCommandLineArgs.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top