try something like
1. Create a new database
CREATE DATABASE <DBname here>
2.use sp_helpdb to get the filenames for the mdf and the ldf you just created
sp_helpdb <DBname here>
it will have logical names for data and log files
3.use RESTORE FILELISTONLY to get the logical filenames of the mdf and ldf in the backup file like
RESTORE FILELISTONLY
FROM DISK = <your backup file path>
4.Use RESTORE with MOVE like so
RESTORE DATABASE <DBname>
FROM DISK = <backup path>
WITH REPLACE,RECOVERY,
MOVE <Logical data file name> TO <your new data file path> , MOVE <logical log file name> TO <your new log file path>
http://blog.nitorsys.com/restore-sql2008-bak-file-to-local-machine/
------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/