think I'm at the right forum fo this type of question.
I am an admin at an attorney's office of 75 users. I have been wanting to create a batch file or script that will cleanup my users profile folders without my having to visit the PC personally.
I'd love to be able to just right a batch file that would delete
C:\DOCUMENTS AND SETTINGS\USERNAME\COOKIES\*.*
C:\DOCUMENTS AND SETTINGS\USERNAME\RECENT\*.*
C:\DOCUMENTS AND SETTINGS\USERNAME\COOKIES\*.*
C:\DOCUMENTS AND SETTINGS\USERNAME\LOCAL SETTINGS\TEMP\*.*
C:\DOCUMENTS AND SETTINGS\USERNAME\LOCAL SETTINGS\TEMPORARY INTERNET FILE\*.*
C:\WINNT\TEMP\*.*
and put it in a login script but I can't figure a way around the USERNAME profile variable so I figured scripting was probably the way to go.
Problem! I have NO experience writing script and I am not sure that I am capable of it given the right material (I've got many other things on my plate).
Can someone help me out with a sample script that may be close to what looking for?
I'm hope that for someone who does this stuff often this will seem an easy task.
David Ball CNE, MCSE
Information Systems
I am an admin at an attorney's office of 75 users. I have been wanting to create a batch file or script that will cleanup my users profile folders without my having to visit the PC personally.
I'd love to be able to just right a batch file that would delete
C:\DOCUMENTS AND SETTINGS\USERNAME\COOKIES\*.*
C:\DOCUMENTS AND SETTINGS\USERNAME\RECENT\*.*
C:\DOCUMENTS AND SETTINGS\USERNAME\COOKIES\*.*
C:\DOCUMENTS AND SETTINGS\USERNAME\LOCAL SETTINGS\TEMP\*.*
C:\DOCUMENTS AND SETTINGS\USERNAME\LOCAL SETTINGS\TEMPORARY INTERNET FILE\*.*
C:\WINNT\TEMP\*.*
and put it in a login script but I can't figure a way around the USERNAME profile variable so I figured scripting was probably the way to go.
Problem! I have NO experience writing script and I am not sure that I am capable of it given the right material (I've got many other things on my plate).
Can someone help me out with a sample script that may be close to what looking for?
I'm hope that for someone who does this stuff often this will seem an easy task.
David Ball CNE, MCSE
Information Systems