how to increment the filename if file already exists in BP

Puneet

New Member
Hello all. I am learning BP. I am stuck here .how to increment the filename if file already exists. Please if some explain with flow diagram
 
Hi!

You can find the flow diagram below.
You can check the original file name for existing.
If it doesn't exist ([File Name]&"."&[File Extension]) - we can save it.
If it exists - we check [File Name]&[Counter]&"."&[File Extension] and increment counter several times,
until we find new file name (which doesn's exist) or our Counter becomes bigger than Max Counter.

View attachment 1544777806643.png
 
  • Like
Reactions: VJR

Nooris

New Member
Hi!

You can find the flow diagram below.
You can check the original file name for existing.
If it doesn't exist ([File Name]&"."&[File Extension]) - we can save it.
If it exists - we check [File Name]&[Counter]&"."&[File Extension] and increment counter several times,
until we find new file name (which doesn's exist) or our Counter becomes bigger than Max Counter.

View attachment 2809
hii, may I know how u check the file exist or not
 
Top