For programs, the best is to simply reinstall from the original disk or setup program (if it was downloaded, it's a good opportunity to download the latest version in stead of using the older setup program you saved).
If, for some reason, you can't do that (such as "lost the disk", 'didn't save the setup program", "no longer available") you can try to copy the folder in Program Files, but it's not guaranteed to work then.
For data (like documents, pictures, music) you just copy it to its new destination using Windows Explorer or your favorite file manager. If file are copy-protected, you might have a problem.
Kees
I just ordered a new PC because my old PC died suddenly (bad motherboard), however its disk is OK. I thought I would be in good shape to move my data and programs, but apparently not. Does anyone have experience with software that will allow me to connect this old disk to the new PC and migrate all my files and programs (except the OS)? I would connect the old drive to the new PC using an external USP 3.0 docking station. The old PC ran Windows 7 while the new PC will run windows 8.1. I am guessing that I'm not the first person having to migrate off a dead PC. Help!!

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic