Click here to Skip to main content
15,894,106 members
Home / Discussions / C#
   

C#

 
AnswerRe: Problems opening Form2 Pin
DaveyM692-Jun-08 11:38
professionalDaveyM692-Jun-08 11:38 
GeneralRe: Problems opening Form2 [modified] Pin
C# Beginner Nick2-Jun-08 11:55
C# Beginner Nick2-Jun-08 11:55 
GeneralRe: Problems opening Form2 Pin
Christian Graus2-Jun-08 17:13
protectorChristian Graus2-Jun-08 17:13 
GeneralRe: Problems opening Form2 Pin
Hum Dum2-Jun-08 21:03
Hum Dum2-Jun-08 21:03 
GeneralRe: Problems opening Form2 Pin
MarkB7772-Jun-08 18:32
MarkB7772-Jun-08 18:32 
GeneralRe: Problems opening Form2 Pin
darkelv2-Jun-08 20:13
darkelv2-Jun-08 20:13 
GeneralRe: Problems opening Form2 Pin
DaveyM693-Jun-08 1:49
professionalDaveyM693-Jun-08 1:49 
QuestionWindows Service and SystemFileWatcher Pin
KaptinKrunch2-Jun-08 9:57
KaptinKrunch2-Jun-08 9:57 
AnswerRe: Windows Service and SystemFileWatcher Pin
DaveyM692-Jun-08 10:20
professionalDaveyM692-Jun-08 10:20 
GeneralRe: Windows Service and SystemFileWatcher Pin
KaptinKrunch2-Jun-08 10:24
KaptinKrunch2-Jun-08 10:24 
QuestionQuerying LDAP and AD Pin
mabby2162-Jun-08 8:34
mabby2162-Jun-08 8:34 
AnswerRe: Querying LDAP and AD Pin
Kythen2-Jun-08 12:56
Kythen2-Jun-08 12:56 
QuestionSNMP Set Command Problem Pin
zoiomon2-Jun-08 8:02
zoiomon2-Jun-08 8:02 
QuestionNeed Immediate Help Pin
Saiyed Alam2-Jun-08 7:56
Saiyed Alam2-Jun-08 7:56 
AnswerRe: Need Immediate Help Pin
Christian Graus2-Jun-08 8:13
protectorChristian Graus2-Jun-08 8:13 
GeneralRe: Need Immediate Help Pin
Saiyed Alam2-Jun-08 8:31
Saiyed Alam2-Jun-08 8:31 
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 

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.