Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default unzipping files

Thanks to Ron's code http://www.rondebruin.nl/zip.htm
i was able to unzip the files.
However, I need little modification and I am new to VB so i am not quiet
sure how to do so.

here's part of my code:
FileNameZip = "N:\Customer Counts\CEN.zip"
FolderName = "N:\Customer Counts\Tag"
FolderName = "N:\Customer Counts\Tag"
ShellStr = PathWinZip & "Winzip32 -min -e" _
& " " & Chr(34) & FileNameZip & Chr(34) _
& " " & Chr(34) & FolderName & Chr(34)
ShellAndWait ShellStr, vbHide

although it is extracting it to " Tag" folder, there are subfolders listed
so actually, it is extracting it to:
N:\Customer Counts\Tag\dwstage\homedirs\reporting\scripts\data _spool
how would I delete the other folders? i want the files to extract to the
"Tag" folder.

Also, if the file already exist, I want it to overwrite it automatically.

Thank you!

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default unzipping files

These would both be a function of the command line arguments you furnish to
Winzip. Just identify what the correct arguments are and put them in the
command string.

--
Regards,
Tom Ogilvy

"GEORGIA" wrote in message
...
Thanks to Ron's code http://www.rondebruin.nl/zip.htm
i was able to unzip the files.
However, I need little modification and I am new to VB so i am not quiet
sure how to do so.

here's part of my code:
FileNameZip = "N:\Customer Counts\CEN.zip"
FolderName = "N:\Customer Counts\Tag"
FolderName = "N:\Customer Counts\Tag"
ShellStr = PathWinZip & "Winzip32 -min -e" _
& " " & Chr(34) & FileNameZip & Chr(34) _
& " " & Chr(34) & FolderName & Chr(34)
ShellAndWait ShellStr, vbHide

although it is extracting it to " Tag" folder, there are subfolders listed
so actually, it is extracting it to:
N:\Customer Counts\Tag\dwstage\homedirs\reporting\scripts\data _spool
how would I delete the other folders? i want the files to extract to the
"Tag" folder.

Also, if the file already exist, I want it to overwrite it automatically.

Thank you!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default unzipping files

sorry my ignorance....
how would i go about doing that?

"Tom Ogilvy" wrote:

These would both be a function of the command line arguments you furnish to
Winzip. Just identify what the correct arguments are and put them in the
command string.

--
Regards,
Tom Ogilvy

"GEORGIA" wrote in message
...
Thanks to Ron's code http://www.rondebruin.nl/zip.htm
i was able to unzip the files.
However, I need little modification and I am new to VB so i am not quiet
sure how to do so.

here's part of my code:
FileNameZip = "N:\Customer Counts\CEN.zip"
FolderName = "N:\Customer Counts\Tag"
FolderName = "N:\Customer Counts\Tag"
ShellStr = PathWinZip & "Winzip32 -min -e" _
& " " & Chr(34) & FileNameZip & Chr(34) _
& " " & Chr(34) & FolderName & Chr(34)
ShellAndWait ShellStr, vbHide

although it is extracting it to " Tag" folder, there are subfolders listed
so actually, it is extracting it to:
N:\Customer Counts\Tag\dwstage\homedirs\reporting\scripts\data _spool
how would I delete the other folders? i want the files to extract to the
"Tag" folder.

Also, if the file already exist, I want it to overwrite it automatically.

Thank you!




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default unzipping files

The information page on the command line addon
http://www.winzip.com/prodpagecl.htm

says:

Fully Documented All commands and options are documented in a Windows help
file for ease of reference.

I assume if you are using the addon, you have the help file.

--
Regards,
Tom Ogilvy


"GEORGIA" wrote in message
...
sorry my ignorance....
how would i go about doing that?

"Tom Ogilvy" wrote:

These would both be a function of the command line arguments you furnish

to
Winzip. Just identify what the correct arguments are and put them in the
command string.

--
Regards,
Tom Ogilvy

"GEORGIA" wrote in message
...
Thanks to Ron's code http://www.rondebruin.nl/zip.htm
i was able to unzip the files.
However, I need little modification and I am new to VB so i am not

quiet
sure how to do so.

here's part of my code:
FileNameZip = "N:\Customer Counts\CEN.zip"
FolderName = "N:\Customer Counts\Tag"
FolderName = "N:\Customer Counts\Tag"
ShellStr = PathWinZip & "Winzip32 -min -e" _
& " " & Chr(34) & FileNameZip & Chr(34) _
& " " & Chr(34) & FolderName & Chr(34)
ShellAndWait ShellStr, vbHide

although it is extracting it to " Tag" folder, there are subfolders

listed
so actually, it is extracting it to:
N:\Customer Counts\Tag\dwstage\homedirs\reporting\scripts\data _spool
how would I delete the other folders? i want the files to extract to

the
"Tag" folder.

Also, if the file already exist, I want it to overwrite it

automatically.

Thank you!






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default unzipping files

ShellStr = PathWinZip & "Winzip32 -min -e -o" _
& " " & Chr(34) & FileNameZip & Chr(34) _
& " " & Chr(34) & FolderName & Chr(34)

should overwrite.

As to the path, I believe you would have to build the archive without using
the save path option from what I could see.

--
Regards,
Tom Ogilvy




"GEORGIA" wrote in message
...
sorry my ignorance....
how would i go about doing that?

"Tom Ogilvy" wrote:

These would both be a function of the command line arguments you furnish

to
Winzip. Just identify what the correct arguments are and put them in the
command string.

--
Regards,
Tom Ogilvy

"GEORGIA" wrote in message
...
Thanks to Ron's code http://www.rondebruin.nl/zip.htm
i was able to unzip the files.
However, I need little modification and I am new to VB so i am not

quiet
sure how to do so.

here's part of my code:
FileNameZip = "N:\Customer Counts\CEN.zip"
FolderName = "N:\Customer Counts\Tag"
FolderName = "N:\Customer Counts\Tag"
ShellStr = PathWinZip & "Winzip32 -min -e" _
& " " & Chr(34) & FileNameZip & Chr(34) _
& " " & Chr(34) & FolderName & Chr(34)
ShellAndWait ShellStr, vbHide

although it is extracting it to " Tag" folder, there are subfolders

listed
so actually, it is extracting it to:
N:\Customer Counts\Tag\dwstage\homedirs\reporting\scripts\data _spool
how would I delete the other folders? i want the files to extract to

the
"Tag" folder.

Also, if the file already exist, I want it to overwrite it

automatically.

Thank you!








  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default unzipping files

Actually, while I haven't tested it. I would expect the default to be to
extract without using the path since there is a -d option to tell it to
extract using the path - but since you say it is using the path, that may
not be true.

Also, the help is for the commandline addon - I assume the arguments would
be the same for winzip32 but no guarantee.

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
ShellStr = PathWinZip & "Winzip32 -min -e -o" _
& " " & Chr(34) & FileNameZip & Chr(34) _
& " " & Chr(34) & FolderName & Chr(34)

should overwrite.

As to the path, I believe you would have to build the archive without

using
the save path option from what I could see.

--
Regards,
Tom Ogilvy




"GEORGIA" wrote in message
...
sorry my ignorance....
how would i go about doing that?

"Tom Ogilvy" wrote:

These would both be a function of the command line arguments you

furnish
to
Winzip. Just identify what the correct arguments are and put them in

the
command string.

--
Regards,
Tom Ogilvy

"GEORGIA" wrote in message
...
Thanks to Ron's code http://www.rondebruin.nl/zip.htm
i was able to unzip the files.
However, I need little modification and I am new to VB so i am not

quiet
sure how to do so.

here's part of my code:
FileNameZip = "N:\Customer Counts\CEN.zip"
FolderName = "N:\Customer Counts\Tag"
FolderName = "N:\Customer Counts\Tag"
ShellStr = PathWinZip & "Winzip32 -min -e" _
& " " & Chr(34) & FileNameZip & Chr(34) _
& " " & Chr(34) & FolderName & Chr(34)
ShellAndWait ShellStr, vbHide

although it is extracting it to " Tag" folder, there are subfolders

listed
so actually, it is extracting it to:
N:\Customer Counts\Tag\dwstage\homedirs\reporting\scripts\data _spool
how would I delete the other folders? i want the files to extract

to
the
"Tag" folder.

Also, if the file already exist, I want it to overwrite it

automatically.

Thank you!








  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default unzipping files

Hi

From the Winzip Help

-o and -j stands for "overwrite existing files without prompting" and "Junk
pathnames", Unless -j is specified,folder information is used


--
Regards Ron de Bruin
http://www.rondebruin.nl


"Tom Ogilvy" wrote in message ...
Actually, while I haven't tested it. I would expect the default to be to
extract without using the path since there is a -d option to tell it to
extract using the path - but since you say it is using the path, that may
not be true.

Also, the help is for the commandline addon - I assume the arguments would
be the same for winzip32 but no guarantee.

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
ShellStr = PathWinZip & "Winzip32 -min -e -o" _
& " " & Chr(34) & FileNameZip & Chr(34) _
& " " & Chr(34) & FolderName & Chr(34)

should overwrite.

As to the path, I believe you would have to build the archive without

using
the save path option from what I could see.

--
Regards,
Tom Ogilvy




"GEORGIA" wrote in message
...
sorry my ignorance....
how would i go about doing that?

"Tom Ogilvy" wrote:

These would both be a function of the command line arguments you

furnish
to
Winzip. Just identify what the correct arguments are and put them in

the
command string.

--
Regards,
Tom Ogilvy

"GEORGIA" wrote in message
...
Thanks to Ron's code http://www.rondebruin.nl/zip.htm
i was able to unzip the files.
However, I need little modification and I am new to VB so i am not

quiet
sure how to do so.

here's part of my code:
FileNameZip = "N:\Customer Counts\CEN.zip"
FolderName = "N:\Customer Counts\Tag"
FolderName = "N:\Customer Counts\Tag"
ShellStr = PathWinZip & "Winzip32 -min -e" _
& " " & Chr(34) & FileNameZip & Chr(34) _
& " " & Chr(34) & FolderName & Chr(34)
ShellAndWait ShellStr, vbHide

although it is extracting it to " Tag" folder, there are subfolders

listed
so actually, it is extracting it to:
N:\Customer Counts\Tag\dwstage\homedirs\reporting\scripts\data _spool
how would I delete the other folders? i want the files to extract

to
the
"Tag" folder.

Also, if the file already exist, I want it to overwrite it

automatically.

Thank you!










  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default unzipping files

To the OP:

I was using a different help file and assuming the arguments would be the
same - apparently not:



http://www.memecode.com/docs/winzip.html

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
Actually, while I haven't tested it. I would expect the default to be to
extract without using the path since there is a -d option to tell it to
extract using the path - but since you say it is using the path, that may
not be true.

Also, the help is for the commandline addon - I assume the arguments would
be the same for winzip32 but no guarantee.

--
Regards,
Tom Ogilvy

"Tom Ogilvy" wrote in message
...
ShellStr = PathWinZip & "Winzip32 -min -e -o" _
& " " & Chr(34) & FileNameZip & Chr(34) _
& " " & Chr(34) & FolderName & Chr(34)

should overwrite.

As to the path, I believe you would have to build the archive without

using
the save path option from what I could see.

--
Regards,
Tom Ogilvy




"GEORGIA" wrote in message
...
sorry my ignorance....
how would i go about doing that?

"Tom Ogilvy" wrote:

These would both be a function of the command line arguments you

furnish
to
Winzip. Just identify what the correct arguments are and put them in

the
command string.

--
Regards,
Tom Ogilvy

"GEORGIA" wrote in message
...
Thanks to Ron's code http://www.rondebruin.nl/zip.htm
i was able to unzip the files.
However, I need little modification and I am new to VB so i am not

quiet
sure how to do so.

here's part of my code:
FileNameZip = "N:\Customer Counts\CEN.zip"
FolderName = "N:\Customer Counts\Tag"
FolderName = "N:\Customer Counts\Tag"
ShellStr = PathWinZip & "Winzip32 -min -e" _
& " " & Chr(34) & FileNameZip & Chr(34) _
& " " & Chr(34) & FolderName & Chr(34)
ShellAndWait ShellStr, vbHide

although it is extracting it to " Tag" folder, there are

subfolders
listed
so actually, it is extracting it to:
N:\Customer

Counts\Tag\dwstage\homedirs\reporting\scripts\data _spool
how would I delete the other folders? i want the files to extract

to
the
"Tag" folder.

Also, if the file already exist, I want it to overwrite it

automatically.

Thank you!










Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Navigating to Excel files over network slow, but not Word files Newbie123 Excel Discussion (Misc queries) 1 December 2nd 09 01:18 PM
Excel 2007 tmp files filling up drive with XLSM files Jim Excel Worksheet Functions 0 September 12th 08 03:31 PM
How to change default Open/Files of Type to "Microsoft Excel Files Tammy Excel Discussion (Misc queries) 2 January 14th 08 11:06 PM
Drive Erased, got Files back but only excel files scrambled, help. Shawnky Excel Discussion (Misc queries) 0 May 8th 06 07:26 PM
unzipping a file MarkS[_2_] Excel Programming 1 December 4th 03 11:03 PM


All times are GMT +1. The time now is 08:26 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"