Apply force towards location

How can I get an object to apply a force towards another object?

A duplicate of:

Consider closing one.