Click here to Skip to main content
15,886,873 members
Home / Discussions / C#
   

C#

 
GeneralRe: Need Immediate Help Pin
Christian Graus2-Jun-08 8:42
protectorChristian Graus2-Jun-08 8:42 
GeneralRe: Need Immediate Help Pin
Saiyed Alam2-Jun-08 16:31
Saiyed Alam2-Jun-08 16:31 
AnswerRe: Need Immediate Help Pin
User 66582-Jun-08 8:21
User 66582-Jun-08 8:21 
Questionpliz tell me name of exercise book C#??? Pin
mbaz2-Jun-08 5:46
mbaz2-Jun-08 5:46 
AnswerRe: pliz tell me name of exercise book C#??? Pin
Christian Graus2-Jun-08 5:55
protectorChristian Graus2-Jun-08 5:55 
JokeRe: pliz tell me name of exercise book C#??? Pin
Guffa2-Jun-08 8:26
Guffa2-Jun-08 8:26 
AnswerRe: pliz tell me name of exercise book C#??? Pin
GuyThiebaut2-Jun-08 9:57
professionalGuyThiebaut2-Jun-08 9:57 
QuestionZip and Unzip using Proces.StartInfo Pin
JustRonald2-Jun-08 5:00
JustRonald2-Jun-08 5:00 
Hi,

I need to unzip and zip files using WinRAR in my C# application.
The unzip part is complete and 100% working but I'm not getting the zip function to work.
Below you see my zip function:
Process Unzip = new Process();
Unzip.StartInfo.Arguments = "x -p" + txtPassword.Text + " \"" + ZipFile + "\" \"" + outputDirectory + "\\temp\"";
Unzip.StartInfo.CreateNoWindow = false;
Unzip.StartInfo.FileName = rarName;
Unzip.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
Unzip.StartInfo.WorkingDirectory = rarDirectory;
Unzip.Start();
Unzip.WaitForExit();
Unzip.Close();
Unzip.Dispose();

To zip the files that are in the outputDirectory (C:\outputDirectory\temp) I have the same as the zip function.
Only the Atguments are different:
Zip.StartInfo.Arguments = "a \"" + Path.GetFileName(zipName) + "\" \"" + ZipFile + "\" \"" + newDir + "\"";

For some reason he is unzipping the files but is not creating a zip file.
Can anyone help me with this?
AnswerRe: Zip and Unzip using Proces.StartInfo Pin
Giorgi Dalakishvili2-Jun-08 6:37
mentorGiorgi Dalakishvili2-Jun-08 6:37 
GeneralRe: Zip and Unzip using Proces.StartInfo Pin
JustRonald2-Jun-08 21:17
JustRonald2-Jun-08 21:17 
GeneralRe: Zip and Unzip using Proces.StartInfo Pin
Robert Rohde2-Jun-08 22:13
Robert Rohde2-Jun-08 22:13 
Questionwindows installer problem Pin
Akash Agarwal2-Jun-08 4:42
Akash Agarwal2-Jun-08 4:42 
AnswerRe: windows installer problem Pin
Mike Dimmick2-Jun-08 6:54
Mike Dimmick2-Jun-08 6:54 
Questiondo u know exercise website C#, pliz tell me!!!??? Pin
mbaz2-Jun-08 4:26
mbaz2-Jun-08 4:26 
AnswerRe: do u know exercise website C#, pliz tell me!!!??? Pin
Christian Graus2-Jun-08 5:21
protectorChristian Graus2-Jun-08 5:21 
AnswerRe: do u know exercise website C#, pliz tell me!!!??? [modified] Pin
Shree2-Jun-08 21:14
Shree2-Jun-08 21:14 
QuestionProblem with bug Pin
humayunlalzad2-Jun-08 4:16
humayunlalzad2-Jun-08 4:16 
AnswerRe: Problem with bug Pin
Scott Dorman2-Jun-08 4:25
professionalScott Dorman2-Jun-08 4:25 
GeneralRe: Problem with bug Pin
humayunlalzad2-Jun-08 5:35
humayunlalzad2-Jun-08 5:35 
GeneralRe: Problem with bug Pin
Scott Dorman2-Jun-08 5:50
professionalScott Dorman2-Jun-08 5:50 
GeneralRe: Problem with bug Pin
humayunlalzad2-Jun-08 6:18
humayunlalzad2-Jun-08 6:18 
GeneralRe: Problem with bug Pin
Scott Dorman2-Jun-08 6:24
professionalScott Dorman2-Jun-08 6:24 
GeneralRe: Problem with bug Pin
humayunlalzad2-Jun-08 6:27
humayunlalzad2-Jun-08 6:27 
GeneralRe: Problem with bug Pin
Scott Dorman2-Jun-08 6:29
professionalScott Dorman2-Jun-08 6:29 
GeneralRe: Problem with bug Pin
humayunlalzad2-Jun-08 8:26
humayunlalzad2-Jun-08 8:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.