I've mapped my Apple TimeCapsule as described previously.
When I changed my network setup a bit and gave Apple TimeCapsule a new IP address, it was a bit of an issue getting Windows to drop the mapping.
To get it to work again, I modified the batch file like this:
net use s: /delete
net use S: \\xxx.xxx.xxx.xxx\TimeCapsule /USER:xxx.xxx.xxx.xxx\{User Name} {Password} >> C:\temp\mount.log 2>&1