I need to check the file names of two different extentions before processing them in the protocol. Both files will have the same file name but differ in extentions. Example "abc.txt" and "abc.html".
How to achieve the following
1. Ensure both files exist on the network folder (Note that both files will have the same file name but differs in extention)
2. Compare both files to ensure the names match before going to next component in the protocol
3. If both files exits and the names matches, move them to a different folder (temp folder)
4. If only one file exits (only .txt exists and the corresponding .html does not exits) then the protocol stops executing next steps.
I know how to check for files on a network folder but not sure on how to check and compare the file names before moving them to a temp folder. Please advise.
regards,
BJ