It didn't work for me. You should mention which OS X version your command was intended for. I got a path name doesn't exist error when running the command.
I found a similar command on a site not related to Apple that gave used a different path. I'm running OS X 10.8.5 (Mountain Lion) and that path did exist on my machine, I tried it and it work for me. Here's the steps I took:
1- Launch Terminal.
2- In Terminal paste the following text and hit return:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchSe rvices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user && killall Finder
3- It will take some time (30 60 seconds) for the command to be completed. Once completed you can quit Terminal.
There is no need to relaunch Finder, as the command has it built into it ("killall Finder", at the end)