It's important to keep your computer's anti-virus software up to date. Do not include an infected computer within your network sharing protocol as this increases the chances that yours will get infected via network. Next is always scan drives especially removable ones before you access them via your computer. Keeping an active and updated antivirus software is key.