Wrexham recovered from their first defeat since September in midweek to claim their seventh straight home win.
Full-back Curtis Obeng scored an early opener with a composed finish after a quick exchange with Jake Speight.
Bottom club Bath were denied an equaliser when Joslain Mayebi saved well from Marley Watkins, who then saw another effort cleared off the line.
Striker Speight doubled the lead soon after the break with a penalty after being brought down by Mark Preece.
The top-scorer took his tally to 13 for the season, and his return to the side relieved Dean Keates of the penalty duties after his last-minute miss from 12 yards in Tuesday's defeat by Forest Green.
VIEWS FROM THE DRESSING ROOMS
Wrexham manager Andy Morrell told BBC Radio Wales:
"It was a bit too open for my liking, they had a few too many shots, even though Josi (goalkeeper Joslain Mayebi) was comfortable.
"But I'm pleased. We talked about getting through the week this week - it would have been nice come through it with seven points by getting a draw on Tuesday.
"It wasn't to be but we're back to winning ways."