With "like" plus a gerund or infinitive object, there really is no difference in meaning. Some texts/teachers distinguish between gerunds and infinitives when they are subjects of sentences like:
Swimming is fun.
To swim is/would be fun.
As you can see with the second example, the infinitive (to) is considered more hypothetical (or unrealized) and the gerund (ing) more real (or realized)
Some verbs take both gerunds and infinitives as objects with different meanings, however. There are lists in most grammar books and online
Hope that helps!
- For Teachers