Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Jogi
Contributor III
Contributor III

Scan folder and find all . qvd

Hi guys, need your help please

I need to create a loop that will scan \folder\folder\folder\ and find all possible .qvds 

and make a list of this . qvds 

Labels (2)
4 Replies
Jogi
Contributor III
Contributor III
Author

Does anybody knows why it is not working? 

SUB DoDir (Root)
FOR Each Ext in 'qvd'
FOR Each File in filelist (Root&' \*.' &Ext)
LOAD
'$(File)' as Name,
FileSize( '$(File)' ) as Size,
FileTime( '$(File)' ) as FileTime
autogenerate 1;
NEXT File
NEXT Ext

FOR Each Dir in dirlist (Root&' \*' )
call DoDir (Dir)
NEXT Dir
ENDSUB

CALL DoDir('My path')

atoz1158
Creator II
Creator II

Hi

Can I suggest you have a look at the following.

https://qlikviewcookbook.com/recipes/#squelch-taas-accordion-shortcode-content-11

Under Scripting the List Files item is what I think you need.

Regards

Adrian

Brett_Bleess
Former Employee
Former Employee

Mykola, below is a Design Blog link that may be helpful in this case.  If the other post did help, you can use the Accept as Solution button on it to mark that as having worked, but if you still need help after checking the below too, shout back with an update on where you are with things currently.

https://community.qlik.com/t5/Qlik-Design-Blog/Loops-in-the-Script/ba-p/1473543

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
pradeep_s
Creator
Creator

Hi Jogi,

Please use QlikView Directory Scan Application. This will help you.

https://community.qlik.com/t5/QlikView-Documents/QlikView-Directory-Scan-Application/ta-p/1734223

Thanks