- May 23, 2002
- 16,928
- 8
- 81
Howdy,
I'm wondering if there's a way to make a simple batch file that can delete certain files in any user profile folders that they exist in. Basically in Windows XP, I want to go to a specific folder in C:\Docs & Settings\<user ID>\local settings.... and empty out the contents of a certain folder.
However on any given PC, there could be multiple user profile folders for whoever's machine it is. Can a batch file do advanced things like that such as going from one folder to another when we won't know what they'll be called?
I'm wondering if there's a way to make a simple batch file that can delete certain files in any user profile folders that they exist in. Basically in Windows XP, I want to go to a specific folder in C:\Docs & Settings\<user ID>\local settings.... and empty out the contents of a certain folder.
However on any given PC, there could be multiple user profile folders for whoever's machine it is. Can a batch file do advanced things like that such as going from one folder to another when we won't know what they'll be called?
