I am using get files in folder and get subfolders in folder including generating the flow variables.
I have created a input variable called AAFile using a file name that would be AA000*.zip. This file name always exists.
But missing the logic of looping and determining if that file is in that folder. So if the file exists do this else that.
For visual example let's say I have 6 folders:
AFolder (should be moved)
-File1.jpg
-File2-1of3.zip
-File2-2of3.zip
-File2-3of3.zip
BFolder (should be moved)
-File1.jpg
-File2-1of3.zip
-File2-2of3.zip
CFolder (should be deleted after moving file)
-File1.jpg
-AA000File22341.zip (file needs moving)
DFolder (should be deleted after moving file)
-File1.jpg
-AA000File2211251.zip (file needs moving)
EFolder (should be moved)
-File1.jpg
-File2-1of3.zip
-File2-2of3.zip
-File2-3of3.zip
FFolder (should be moved)
-File1.jpg
-File2-1of3.zip
-File2-2of3.zip
Inside those would be a JPG and atleast 1 ZIP file. Can someone tell me how to sort through and determine if the file %AAFile%
is there. Then if it is not, move the folder to another location. If the file is there, move only the file to a different location and then delete that folder.
If I use a For Each loop it seems like PAD doesn't like me to use If file exists action to Move a folder.
Thanks everyone