You can try regularly using
ATF_Cleaner and/or
CCleaner to clear of temporary crap. If you use Ccleaner first click on the options tab --> advanced and UNCHECK
Only delete file in windows temp folder older than 48 hours. However I agree with Bill that you don't have enough RAM for what you are doing. Everyone I've know that doesn't have enough RAM for what they are doing says that their computer freezes and/or isn't fast enough. Clearing the temp files might help a little bit but but it isn't a solution to your problem. Another question: you have 512 mb of RAM and you are using windows 7? Thats insane. The recommended minimum is twice that much just for the operating system. I know Microsoft only states that 512 of RAM as required but they
never put down the correct amount of RAM. Window 7 and Vista use more than that just running themselves. You should 2 gb of RAM or more if you can use that much on your motherboard.