[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

VBSCRIPT UNZIP ZIP FILE

Asked by ratliffjm in VB Script, Windows XP Operating System, VB Objects

I have a zip file that I want to open and extract the files to a 'Temp' folder. The zip file is password protected but it is always the same. I have created some code that opens a drop down box and allows the user to select the file e.g. SCRI_2009.zip. I have the drop down working but I get stuck from there. I would like for the files to be extracted to the temp folder when the file is selected. Thanks!

   
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
<HTML>
 
<BODY bgcolor="sandybrown">
 
<H1>Clinical Applications For Coded Terms</H1>
 
<P>This application was created for the sole purpose of allowing the user the ability to create 
   Coded terms in a easy and timely manner. The user can create the selected zip file and run 
   the the appropriate SAS programs to produce and validate the files that will be used to
   export to Thesis.
 
<BODY>
 
<HTML>
 
<p> Select a Dataset: 
 
 
<html>
<head>
 
<script language=vbscript>
 
function getdata()
 
dim fso, folder, wshell
 
'SET UP TO USE THE SHELL APPLICATION OBJECT
set wshell=createobject("shell.application")
set fso=createobject("scripting.filesystemobject")
 
'USE THE BROWSEFORFOLDER METHOD TO OPEN AN EXPLORER-TYPE WINDOW
set ofold=wshell.browseforfolder(0,"Specify Root Directory ",&h0010,"S:\") 
 
'SINCE THE FOLDER REFERENCE RETURNED IS AN OBJECT, GET THE FULL PATH NAME FROM IT
fullfold = ofold.ParentFolder.ParseName(ofold.Title).Path & "\"
set fold=fso.getfolder(fullfold)
set filelist=fold.files
 
for each file in filelist
 
   dsname=replace(file.name,".zip" & fso.getextensionname(file.name),"")
 
   getlist(dsname)
 
next
 
end function
 
</script>
 
<script type="text/javascript">
 
function getlist(name)
{
   var oOption = document.createElement("OPTION");
   oselect.options.add(oOption);
   oOption.innerText = name;
   oOption.value = name;
}
 
</script>
 
'---------------------------- I AM LOST FROM HERE
 
function oselect = zzip()
 
pathTofFile=(dsname)
extractTo="S:\it\codedterms\export\temp"
 
set filesInzip=wshell.NameSpace(pathToZipFile).items
wshell.NameSpace(extractTo).CopyHere(filesInzip)
 
 
end function
 
 
</head>
 
<body onload="getdata()">
<select id="oselect"></select> 
</a></div></td>
[+][-]10/04/09 03:51 PM, ID: 25491442Accepted Solution

Your question has an Asker Certified™ answer! ratliffjm verified that this solution worked for them--which means it will likely work for you, too. Click to view the solution free for 30-days now.

About this solution

Zones: VB Script, Windows XP Operating System, VB Objects
Sign Up Now!
Solution Provided By: RobSampson
Participating Experts: 1
Solution Grade: A
 
 
Related Solutions
Keywords: VBSCRIPT UNZIP ZIP FILE
 
Loading Advertisement...
 
[+][-]10/01/09 05:20 PM, ID: 25474317Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/04/09 01:37 PM, ID: 25490819Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/05/09 12:30 PM, ID: 25498697Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/05/09 02:03 PM, ID: 25499729Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20100308-EE-VQP-141 - Hierarchy / EE_QW_3_20080625
Your technology problems solved.
Close See Plans and Pricing. Try it FREE for 30 days.