A force which does not depend on the path taken to increase the potential energy is
Conservative force
A force which does not depend on the path taken to increase the potential energy is a conservative force. Frictional and viscous forces are non-conservative forces, so they are path dependent.