How can I delete files in system32 folder?
Hi,
I am trying to delete unwanted files from the system directory "C:\Windows\system32\" folder in windows xp. How do I remove a file from the system32 folder without it automatically coming back? seriously though, is they any way to delete or add files to the system32 folder during installation?
re: How can I delete files in system32 folder?
Why you want to delete files in system32 files folder. Is it actually causing you any problems, or do you just want to clean up your System32 directory? You should never delete any of the system 32 folder. It is full of files that are crutial to system operation. Limited user privileges will not be able to delete anything out of the System32 directory nor will you would be able to install anything using the account.
Re: How can I delete files in system32 folder?
Before deleting files in system32 folder, make sure a program does not have access to these files and they are not read only. If you are cleaning out a hard drive, it would be easier to reformat the drive, and reinstall everything after backing up all the files you want. Try
Code:
rmdir /s foldername
Re: How can I delete files in system32 folder?
First you have to make sure this is not system file that affect system after delete, you should be able to delete those files out of the System32 using an account using Admin rights.
Use
Code:
int SHFileOperation(
LPSHFILEOPSTRUCT lpFileOp
);
See here : http://msdn.microsoft.com/en-us/libr...64(VS.85).aspx