Question

Why does it go in Loop where it shouldnt go?

  • 8 January 2022
  • 3 replies
  • 7 views

Userlevel 2
Badge +8

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

Userlevel 3
Badge +7

Hi @Semih Öztürk​ ,

 

The code is migrated from A11 to A360 is correct?

Userlevel 2
Badge +8

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 4
Badge +8

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.

Reply