Assuming you have windows 2000, search at: My computer, right click ->Propoerties, Advanced, Performance Options, [Virtual memory] Change, set maximum virtual memory to 0 for every drive (partition) except the partition newly created.
For Windows 98 you have somewhere (in Properties something) the same Virtual Memory setting, set it on the drive you want, with the size you want. I don't have a Windows 98 at hand, sorry (unlike WinXP and Win2000, on W98 you can have swap only on a single partition)
Windows XP should have virtual memory settings in similar places as Windows 2000. Maybe someone with Windows XP can help?
Calin
As for the temp files, every user has his temp files. You can access them somewhere in My Computer, RightClick -> Properties, Advanced, Environment variables. Set the temp and tmp to the desired location