Advertisement

11.26.2008 at 05:45AM PST, ID: 23937179 | Points: 50
[x]
Attachment Details

Unable to delete files from "C:\Winnt\system32" folder

Tags:

Microsoft, Windows OS, Windows NT

Hi all,

I am trying to delete unwanted files from the system directory "C:\Winnt\system32\" folder in Windows NT machine.

I tired using the functions

DeleteFile(LPTSTR lpFileName)

and

SHFILEOPSTRUCT sh;
sh.wFunc  = FO_DELETE;
sh.pFrom=fileName;
SHFileOperation(&sh)

In both the cases, I cannot delete the file but the same function can delete other files in other directories other than system32 folder

Any suggestions on this would be highly appreciated...

Thanx in advance
Deenad
Top Expert: evilrix
Expert Since: 04/02/2004
Accepted Solutions: 1130
Computer Expertise: Guru
evilrix has been an Expert for 4 years 9 months, during which he has posted 7646 comments and answered 1130 questions. evilrix is just one of 267 experts in the Windows NT Operating System Zone.
 
 
20081119-EE-VQP-47 - Hierarchy / EE_QW_2_20070628