In general, you cannot perform an unlawful action and just say "I was joking", or "I meant no harm", etc. An unlawful action is subject to whatever civil and penal proceedings regardless of your intention, unless expressly stated otherwise.
Want insurance? Have your friend sign a release form. Still, I cannot help you because I don't have access to such document, nor do I have any means to verifying its authenticity.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
The comments above are for something else (a prank on a friend). I didn't know it would be illegal with his permission, but the I changed the topic. So that's why those comments are there. It wouldn't let me delete the post.
It was for something else. I friend gave me permission to mess with his computer as long as it didnt' harm it. I was going to make a program that copied itself to new folder in this path
C:\Program Files\Prank
. Then it would put itself in the registry in the startup, (simpler than copying itself to the startup folder because of different Windows Versions). As soon as he turns on his computer it starts up the Bama website (He's an Aubern Fan).
I said I needed to know to the use the shell execute command. I've never used it, but heard of it. I need to know how to get the path of the program running. And I need a C++ code to copy a file.