If i don't have autoplay on, but i still open folder to view files of that USB stick, will the autorun.inf file be executed anyway with autoplay option disabled? Does autorun.inf only gets executed from USB on computer with autoplay enabled?
Starting with Windows 7 it is not possible any more to run
with USB flash drives anymore. Microsoft has removed this support for security reasons.
This is still available for CDs and DVDs, but not for USB sticks.
See Wikipedia autorun.inf.
I still open folder to view files of that USB stick, will the autorun.inf file be executed anyway.
If autoplay is disabled, the autorun.inf file will not execute automatically. Autoplay is mostly not available so for devices like USB it does not matter.
However, you can run any autorun file and anything else that is on the key.
Autoplay just makes things easy for any device that can use it. It does not prevent running anything at all.
So then, you need to be careful about what you are running.