Pdf Automation Problem

Hello,
I have created one Automation. In this automation I have one Problem, like Robot will downloaded two more more pdf same time. and that downloaded file folder some other pdf is also available. but without pause my automation i need just Robot downloaded those pdf and immediately move only downloaded pdf.
**Note.**Downloaded pdf name is not fixed only pdf path is (\My computer\download)

so can you say which type i will solved this issues

Hey,

you can use Wait for download activity
and then you can use move file Activity where you want to place that file

It will work

Regards
Rounak

Hi @rAE_rAS

How about this expression to get the latest PDF ?

Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile)+"\Downloads").[Select](Function(x) New FileInfo(x)).Where(Function(f) f.Extension.Equals(".pdf")).OrderByDescending(Function(x) x.LastWriteTime).Take(1).ToArray()(0).ToString

Use move file activity or Invoke method activity

Regards
Gokul

its not wotking becasue pdf is downloaded with screeen scraping and downloaded all pdf with same time

its not wotking becasue pdf is downloaded with screeen scraping and downloaded all pdf with same time