Hi,
All you need to do is ...
USE master;
GO
ALTER DATABASE tempdb MODIFY FILE (NAME = tempdev, FILENAME = 'E:\SQLData\tempdb.mdf');
GO
ALTER DATABASE tempdb MODIFY FILE (NAME = templog, FILENAME = 'F:\SQLLog\templog.ldf');
GO
... Just change the filename to what ever locations you want.
Then restart your SQL environment and everything will be happy.
Regards,
Ian.