@Smit123: Is it really random? Or is it as described above? I.e. it flashes when connection is lost?
Anyway, to disable the flashing altogether, as easier way it to run WinSCP once like this:
https://winscp.net/eng/docs/rawconfig#flashtaskbar
Anyway, to disable the flashing altogether, as easier way it to run WinSCP once like this:
winscp.exe /rawconfig Interface\FlashTaskbar=0
https://winscp.net/eng/docs/rawconfig#flashtaskbar