First use the following codes to check the name of the files. USE TempDB
GO
EXEC sp_helpfile
GOBy default, the names of the files are : tempdev and templog.Then, you could run the following codes to move .mdf and .ldf files.USE master
GO
ALTER DATABASE TempDB MODIFY FILE
(NAME = tempdev, FILENAME = 'd:tempdb_data.mdf')
GO
ALTER DATABASE TempDB MODIFY FILE
(NAME = templog, FILENAME = 'e:tempdb_log.ldf')
GO