I have a script I am trying to write to delete some files from a couple of folders, those folders are the temp and temp internet files. But my problem is that I need to get to those folders through the users profile name. I do not want to create a script for each person so I need to figure out how to open the dir for the one user by his profile name.
One of the folders I am trying to chdir to is
C:/Documents and Settings/"div"/Local Settings/Temp.
The part in quotes is want I need to use a wildcard with, the div is the first of the profile name. Can someone lead me in the right direction on how to get to these dirs. I want one script for about 200 users.
Thanks,
Mark
In reply to wildcards
by mallen