Why does it go in Loop where it shouldnt go?

  • 8 January 2022
  • 3 replies

Userlevel 3
Badge +10

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


filename is


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


I download this file by clicking on a link.


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



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.







3 replies

Userlevel 5
Badge +11

Hi @Semih Öztürk​ ,


The code is migrated from A11 to A360 is correct?

Userlevel 3
Badge +10

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

Userlevel 6
Badge +9

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.