Getting rid of a dog or a cat that you do not own and which has become a pest to you for some reason is not quite the same as dealing with a pest rabbit. You may not mind dispatching the rabbit but you really can't harm the cat or dog because in most cases they belong to a neighbor as a pet. So you want to keep them out of your yard without hurting them in any serious fashion. Repellents are the best tools for this job. There are many smell based repellents for cats and dogs and several repelling devices.
If you want more information about dogs and cats as a problem, Click Here