Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
naziralala
Creator
Creator

Excel Files In QlikView

Hello All,

I followed this thread below:

https://community.qlik.com/thread/189024

and implemented this script code below in powershell.

$shell_app=new-object -com shell.application 

02.$filename = "Gain.zip" 

03.$zip_file = $shell_app.namespace((Get-Location).Path + "\$filename") 

04.$destination = $shell_app.namespace((Get-Location).Path) 

05.$destination.Copyhere($zip_file.items())

In my Qlikview script:

execute "c:\Program Files\7-Zip\7z.exe" e "C:\Apps\Gain.zip"

// -y -oc:\Apps\

I am not getting the files unzipped in this location.

Is there something that i am missing?

Please assist.

Thanks.

5 Replies
naziralala
Creator
Creator
Author

Yes. i have checked them.

Thanks

petter
Partner - Champion III
Partner - Champion III

You show two different approaches... have you tried both separately and none of them worked?

Both seems a bit like they won't work.

The first since you have some line numbers in front of line 2 to 5 like...

They shouldn't be there or the PowerShell script won't work. How do you execute the PowerShell script
from QlikView? You haven't described how?

The next approach has the last parameter commented out - is that right?

// -y -oc:\apps

Could you please clarify?

naziralala
Creator
Creator
Author

Hello Peter,

I followed this thread below:

https://community.qlik.com/thread/189024

Please guide me how to execute the PowerShell script in QlikView?

The comment before the //-y is not in my script.(a typing error)

Thanks

petter
Partner - Champion III
Partner - Champion III

Currently I have a better suggestion. Try this Unzip-function that I developed by using VBscript and can be called from the LOAD SCRIPT.

What you see in the screenshots below is all in the UNZIP.QVW that I have attached that demonstrates the use of the unzip routine:

2016-02-10 #3.PNG

2016-02-10 #4.PNG