How to stop my iphone opening up file explorer everytime I plug it into my laptop?

My friend went on my hp laptop, normally when I plug in my iphone itunes opens and something pops up asking me what I want to do with this device, which I normally just leave. However my friend chose to click on this randomly and choose file explorer. Now every time I plug in my phone to my laptop file explorer opens and this is of no use to me, how do I change this?

Check your AutoPlay settings under Control Panel.

If you're on Vista or later you can simply press the Windows key on they keyboard to open start search, then type autoplay. Click on AutoPlay when it appears in the results.