The file that you copied from your friend's computer could have already been infected. When you opened it on your computer the infection probably spread to your machine. I don't know the specific name of the virus or malware. But I would suggest you run several scans with different anti-malware products because no anti-malware product is 100% effective 100% of the time.
Windows Defender Offline RKill Malwarebytes ESET Online Scanner
Something to remember is once a computer becomes infected there is no way to be absolutely sure that all traces of the infection have been removed. It could be buried so deep that all malware scans miss it. A lot of people suggest doing a clean install of the operating system and all installed programs.