Sure, you can use nicotine patches, gum
etc but the bottom line is about having the will power to get past it. But you can certainly help your will power out by distracting yourself from the craving, by ignoring and trying to forget the habit.
For example, a very common tip for smokers is, keep your hands busy. If you play an
instrument, go practice it. If you like to knit, go knit. Go look at some interesting websites for a while.
The exact same idea works with DP.