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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Test the existence of a file

Hi,
In my process, I would like to verify the presence of a file.
If this file exists, I launch the execution of .bat with the tSysytem component.
If this file does not exist, I make nothing.
My question is: is there a component which allows to verify the existence of a file?
If it is not the case, I think of using a component tJava to develop in Java a function which verifies the existence of this file.
Thank you for your help.
Labels (3)
7 Replies
Anonymous
Not applicable
Author

3158
Anonymous
Not applicable
Author

I will do it this afternoon for java version
Anonymous
Not applicable
Author

The link I gave is related to Java version 🙂
Anonymous
Not applicable
Author

ok sorry 🙂
_AnonymousUser
Specialist III
Specialist III

Dear all,
In the run if, could please tell me how can I test if the file exist or not.
Thanks a lot.
Anonymous
Not applicable
Author

Hello,
tFileExist_1 -----------if-----------> (...)
In the if condition put :
((Boolean)globalMap.get("tFileExist_1_EXISTS"))==true
If you want to continue if file exist
or
((Boolean)globalMap.get("tFileExist_1_EXISTS"))==false
If you want to continue if file doesn't exist

José
Anonymous
Not applicable
Author

Thanks a lot, it is fine.