With the verb 'like' in your sentences, they are interchangeable in meaning. With other verbs, they are not: I remembered dancing with her / I remembered to dance with her . Some verbs can only use one: I enjoyed seeing her again.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.