The login script maps a search drive is

A batch file will run properly from a command prompt.
When running a batch file from Start | Run there is this error message
Windows cannot find 'Z:.\filename.bat'

The PATH variable shows Z:.

This is a problem in Windows 7 not Windows XP.
The root of the problem is that dot before the slash.
How do I correct this?