Can you describe the game a bit more? Is it a side scroller; vertical scroller; do you stay above ground or dig down; anything?
Mr Do just came to mind maybe but that doesn't sound right either and that was arcade / console, not sure about PC.
It was a vertical scrolling game. You started at the bottom and had to work your way to the top by crossing horizontal planes of dirt/grass, and climbing up ladders. You had to avoid the pests by digging holes for them to fall into. It was made up of both grass and dirt elements, I think you could do different things depending on what you were standing on. As you were walking across the planes, you would encounter veggies/flowers and you would dig those up, but I cannot remember what they would allow you to do. I wish I could remember more.