One Star

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.
7 REPLIES
Employee

Re: Test the existence of a file

3158
One Star

Re: Test the existence of a file

I will do it this afternoon for java version
Employee

Re: Test the existence of a file

The link I gave is related to Java version :-)
One Star

Re: Test the existence of a file

ok sorry :-)
One Star

Re: Test the existence of a file

Dear all,
In the run if, could please tell me how can I test if the file exist or not.
Thanks a lot.
One Star

Re: Test the existence of a file

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é
One Star

Re: Test the existence of a file

Thanks a lot, it is fine.