Don't Let Windows AutoPlay
Be sure that your Windows operating system is not set to automatically run files found on flash drives, memory cards, smartphones, and tablets. The files on these devices may install unwanted malware without warning.
In order to ensure that the autoplay setting is not enabled, search for 'autoplay' in Windows, and bring up this dialog box.
Set not only 'Use AutoPlay for all media and devices' to OFF, but also set the defaults for external drives; memory cards; smartphones; and tablets to 'Take no action'.
It's a bad idea to have your OS set to run external media automatically, no matter how convenient it might be.