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: 
souadouert
Specialist
Specialist

files name extracting

Hello ,

i want to extract all name files  , i use this script

Set sPathResources = 'C:\pfe\qlikview\qvd\DONNEES_RECAPFEV2016';

          for each File in FileList('$(sPathResources)\*.qvd')

          files:

          LOAD *,

       

           FileName() as filename

          FROM [$(File)];

when i execute this script , i have only the first name files in folder fil.PNG

1 Solution

Accepted Solutions
souadouert
Specialist
Specialist
Author

hello liron

i tried this script

Set sPathResources = 'C:\pfe\qlikview\qvd\DONNEES_RECAPFEV2016\*';

Load

     FileName() as Filepath

From $(sPathResources);

and it s working

View solution in original post

3 Replies
MK_QSL
MVP
MVP

Set sPathResources = 'C:\pfe\qlikview\qvd\DONNEES_RECAPFEV2016';

for each File in FileList('$(sPathResources)\*.qvd')

          files:

          LOAD *,

      

           FileName() as filename

          FROM [$(File)];

Next

lironbaram
Partner - Master III
Partner - Master III

hi

if this is all your script

you miss a "next"

in the end of the script

souadouert
Specialist
Specialist
Author

hello liron

i tried this script

Set sPathResources = 'C:\pfe\qlikview\qvd\DONNEES_RECAPFEV2016\*';

Load

     FileName() as Filepath

From $(sPathResources);

and it s working