How to save picture after download by sequence number

Hi All,

May I know how to save the picture we downloaded by sequence number?

my existing activity is for each item.

1st picture download rename as 01
2st download as 02

Thanks

@Nur.ain

Do you have any existing sort mechanism to sort the pictures? If yes then, you could just use a simple counter based logic to achieve this inside your for each loop.

Nope, every time want to download is the new one but download for multiple pic and need save by sequence number

@Nur.ain

Try this example:

Assign: SequenceNumber = 1

For Each item in your image list:
Download the image

Move File:
    Source: "Path\To\Downloaded\Image.jpg"
    Destination: "Path\To\Destination\" + SequenceNumber.ToString("00") + ".jpg"

Assign: SequenceNumber = SequenceNumber + 1
  • Assign activity:
    sequenceNumber = 0

  • For Each item in PictureList

    • Assign activity:
      sequenceNumber = sequenceNumber + 1

    • Assign activity:
      formattedSequence = sequenceNumber.ToString(“00”)

    • Move File activity:
      From: DownloadedPicturePath (or item)
      To: DestinationFolder\PictureName_" + formattedSequence + ".jpg

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.