I need to create simple batch file that cleans out the user’s local temp directory of my W2K users at startup. What I need to know is the wild card, or correct syntax, to specify the individual user directory of each user.
I want the batch file to change to the user directory of the person logging on to the W2K machine and then delete all temp files. As an example I would place this file in the start up group of each user:
cd\ c:\documents and settings\*user*\local settings\temp
del *.tmp
What I do not know is how to generically specify the user directory.
I want the batch file to change to the user directory of the person logging on to the W2K machine and then delete all temp files. As an example I would place this file in the start up group of each user:
cd\ c:\documents and settings\*user*\local settings\temp
del *.tmp
What I do not know is how to generically specify the user directory.