Skip to main content
Pathfinder Advocate | Tier 6
January 8, 2022
Question

Why does it go in Loop where it shouldnt go?

  • January 8, 2022
  • 3 replies
  • 111 views

I loop in a folder, and show the file name in MessageBox,

 

filename is HOT_20.3_20220107.zip

 

There is only one file in the folder.

 

It shows Message Box twice.

 

Also why does it show 2 messageBox, whats desktop.ini?

in first messagebox, it shows desktop.ini

second messagebox, it shows HOT_20.3_20220107.zip

 

I download this file by clicking on a link.

 

and I use Loop while doesnt exist at C:\Users\botcreator3\Downloads\$vfileName$

Delay(2second)

 

so it will wait till the file gets downloaded. I have the file in Downloads, but it goes into the folder, It shouldnt get into this Loop, since the folder has the file

 

It never sees the file, because it stays in Loop forever.

 

Untitled 

 

 

 

 

    3 replies

    Tamil Arasu10
    Most Valuable Pathfinder
    Most Valuable Pathfinder
    January 8, 2022

    Hi @Semih Öztürk​ ,

     

    The code is migrated from A11 to A360 is correct?

    _Tamil_
    Pathfinder Advocate | Tier 6
    January 8, 2022

    Hi @Tamil Arasu​ 

    Yes, it is migrated from A11 to A360

     

    when i got a problem in the loop, i opened a new project just to see if there is any problem in those part,

    even though there is file in the folder, it still goes in the loop in 4.row

    Automation Anywhere Team
    September 27, 2022

    Hi @Semih Öztürk​ ,

     

    Desktop.ini file is a system file that is kept by windows but there is no harm in deleting it.

     

    Instead of doing this manually, you can add logic to delete that file if exist and then start the loop.