473,399 Members | 2,478 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Using Winzip with VB.Net

1
I'm sorry if I post Winzip question here, but I met a problem. I was running Winzip command by using process in VB.Net, but I had error that I don't know how to trace.

1. I create a batch file: "C:/zipbatch.bat" that contains below zip command
winzip32.exe -min -a -ex "C:/zipfile.zip" "C:/sourcefile.csv"

2. I create new a process to run the zip command
Dim t_process As New System.Diagnostics.Process
t_process.StartInfo.FileName = "C:/zipbatch.bat"
t_process.Start()
t_process.WaitForExit()
dim t_iExitCode as Integer = t_process.ExitCode

3. Normally t_iExitCode will return 0 (zero) for a successful run. But I met a condition that the winzip return 0, but in fact it isn't totally successful.
The error message is that...
Winzip failed to rename the temp file into intended name, which is "C:/zipfile.zip"
So it happens that my file has been added to some "C:/ziptempfile.tmp", but then failed to be added to "C:/zipfile.zip"

Is there anybody knows how to detect such kind of condition, since the process returns me "success". For now, I wish I could detect the failure first, so that I can stop my next process. Or if anybody knows how this kind of issue could happen, please tell me. Thanks a lot.
Jun 30 '09 #1
0 2715

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: tdmailbox | last post by:
I developed an access database in access 2003(keeping my database in the access 2000 format). It has been fully tested to be access 2000 compatible and works great. I am trying to package the...
2
by: Katie | last post by:
So I am Microsoft Access User, learning as I go. I need to send a database back to its author for some adjustments. For security and due to the size of this database I need to send it as a winzip...
2
by: Derrick | last post by:
Is there any core assembly class that can compress/decompress files similar to winzip? I found how to create custom actions. What I would like to do is write something that decompresses winzip...
15
by: Karl | last post by:
Hi all, I regularly use FTP to place Self Extracting Zip files on the web for remote users to update their datafiles. Works very nicely. I have automated the creation of the initial zip file (...
10
by: Elric02 | last post by:
I'm currently trying to get access to the Python source code, however whenever I try to extract the files using the latest version of WinZip (version 10) I get the following error "error reading...
1
by: hannahg | last post by:
I am trying to incorparate the win zip command line processor in my code on an Access 2003 database form. The code that I downloaded made a call to the windows api. It requires that you use short...
11
by: Killer42 | last post by:
Hi all. Has anyone else noticed this? In the Add dialogue, WinZip no longer allows you to follow a shortcut. Instead it simply selects the shortcut file itself to add to the archive. This is...
3
by: learningvbnet | last post by:
Hi, I am trying to extract zipped files using Winzip in my VB.net application and I ran into 2 stone walls. 1. How do you handle file names with spaces. See psiProcess.Arguments For...
5
by: Nilam2477 | last post by:
i need to zip the files/folder. How can i use winzip32.exe in C# code to programatically zip the files or folder. If you could provide some sample code that would be great. Thanks
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.