Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
Not applicable

Find No Of QVDs in a folder with their names

Hello all, I want to find No Of QVDs in a folder with their names....?????

Like i will give path of a folder and in return i should get how many qvds are there in a folder.

Can anyone help me...?

Tags (1)
1 Solution

Accepted Solutions
Employee
Employee

Re: Find No Of QVDs in a folder with their names

The basic structure you should use is the following:

Set vFolder = 'C:\Users';

for each vFoundFile in filelist( vFolder & '\*.qvd')

  FileList:

  Load '$(vFoundFile)' as SourceFile autogenerate 1;

next vFoundFile

Then you can use Count(SourceFile) to find the number. You could optionally also load the file itself inside the loop.

HIC

2 Replies
Employee
Employee

Re: Find No Of QVDs in a folder with their names

The basic structure you should use is the following:

Set vFolder = 'C:\Users';

for each vFoundFile in filelist( vFolder & '\*.qvd')

  FileList:

  Load '$(vFoundFile)' as SourceFile autogenerate 1;

next vFoundFile

Then you can use Count(SourceFile) to find the number. You could optionally also load the file itself inside the loop.

HIC

Not applicable

Re: Find No Of QVDs in a folder with their names

Thanks a lttt Sir....its working fine.

Community Browser