Hiya,
Does anybody know how I can completely delete a profile (files and directories) under Windows XP? I've written a service which looks for specific profiles at startup and then deletes them by moving recursively through the directory structure, removing the files and directories using DeleteFile(<filename>);
The problem is that, although I can empty the entire profile directory structure of files, I can't seem to get rid of the directories. I've tried removing read-only attributes from the directories before I delete them with FileSetAttr(<filename>,<attr>); but that doesn't help.
I was wondering if the profile folders are protected system folders and there are registry settings I might need to change?
Any help anyone can give will be much appreciated,
Thanks,
Paul
Does anybody know how I can completely delete a profile (files and directories) under Windows XP? I've written a service which looks for specific profiles at startup and then deletes them by moving recursively through the directory structure, removing the files and directories using DeleteFile(<filename>);
The problem is that, although I can empty the entire profile directory structure of files, I can't seem to get rid of the directories. I've tried removing read-only attributes from the directories before I delete them with FileSetAttr(<filename>,<attr>); but that doesn't help.
I was wondering if the profile folders are protected system folders and there are registry settings I might need to change?
Any help anyone can give will be much appreciated,
Thanks,
Paul