Visual Basic .NET Forums  
Click here to advertise with us

Go Back   Visual Basic .NET Forums > VB.NET > VB.NET General Discussion

VB.NET General Discussion VB.NET general discussion area

VB.NET Forums Newsletter Signup:
Email address:


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-28-2009, 9:24 PM
VB.NET Forum Newbie
.NET Framework: .NET 3.5
 
Join Date: Nov 2009
Posts: 1
Reputation: 0
gozzgug is on a distinguished programming path ahead
Default Sample Code Needed for Unzipping File

I am new to vb .net. I have a good knowledge of vbscript but am just starting in vb .net. I have install visual studio express but don't know where to start. I have a vbscript that does the following but I want to do it in vb .net and was hoping someone could post some sample code to get me started. The script does the following.

Monitors 2 folders specified in a config file.
When a zip file is put in the one of the folders it us automatically unzipped to a working folder and then the zip file is renamed to unzipped-<zip>.zip.

I am hoping someone could post a visual studio project or code that might help me get started. I really appreciate the help.

Thanks,
Goz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-28-2009, 10:14 PM
jmcilhinney's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2004
Location: Sydney, Australia
Age: 40
Posts: 6,123
Reputation: 541
jmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalistjmcilhinney VB.NET gold medalist
Default

Thread moved from VS.NET General, which is for general questions on the VS.NET IDE.

Thread title changed to more accurately reflect the topic.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-29-2009, 8:44 AM
Hack's Avatar
VB.NET Forum Master
.NET Framework: .NET 3.0 (VS 2005/2008)
 
Join Date: Apr 2009
Location: Sterling Heights, MI
Age: 59
Posts: 313
Reputation: 0
Hack an unknown entityHack an unknown entityHack an unknown entityHack an unknown entity
Default

VB.NET Zip Compression Example Source Code

GZipStream Class (System.IO.Compression)
__________________
Please use [Code]your code goes in here[/Code] tags when posting code.
Before posting your question, did you look here?
Microsoft MVP 2005/2006/2007/2008/2009
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-29-2009, 11:06 AM
Tom Tom is offline
VB.NET Forum Idol
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Aug 2005
Posts: 711
Reputation: 335
Tom master of VB.NETTom master of VB.NETTom master of VB.NETTom master of VB.NETTom master of VB.NETTom master of VB.NETTom master of VB.NETTom master of VB.NETTom master of VB.NETTom master of VB.NET
Default

Also WinZip has a command line version that can be used. You just need to send the proper commands to zip & unzip the file but would require whatever user to also have this same version installed.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-29-2009, 12:48 PM
JohnH's Avatar
VB.NET Forum Moderator
.NET Framework: .NET 3.5 (VS 2008)
 
Join Date: Dec 2005
Location: Norway
Age: 37
Posts: 10,322
Reputation: 1315
JohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond reputeJohnH has a reputation beyond repute
Default

This one's free: .NET Zip Library #ziplib (SharpZipLib)

Monitor with FileSystemWatcher Class (System.IO) or check periodically with a Timer.
__________________
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -4. The time now is 6:16 AM.

Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


For advertising opportunities click here.