See
Re: Windows API Call for the users Home Path Thread #
1197119 Message #
1197143>Hi Sean,
>
>I think
%TEMP% should point to this directory by default.
>
>>I am trying to create a small and simple (or so I thought) batch file delete process. I am running into trouble in that one of the files I want to delete is in the users profile (C:\Documents and Settings\username\Local Settings\Temp\filname.fil). I had assumed there would be an easy wildcard I could place instead of the username in the filepath, so far I have not had much success. Does anyone have any suggestions?
If it's not broken, fix it until it is.
My Blog