hidden hit counter
Welcome to WindowsForumz.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Unable to delete files in "C:Winntsystem32" folder

 
   Windows XP (Home) -> General Discussion RSS
Next:  Icons, writing & pictures faced dull view on ..  
Author Message
tsgd84

External


Since: Nov 26, 2008
Posts: 3



(Msg. 1) Posted: Wed Nov 26, 2008 5:41 am
Post subject: Unable to delete files in "C:Winntsystem32" folder
Archived from groups: microsoft>public>windowsxp>general (more info?)

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

 >> Stay informed about: Unable to delete files in ""C:Winntsystem32"" folder 
Back to top
Login to vote
"John John

External


Since: May 12, 2008
Posts: 75



(Msg. 2) Posted: Wed Nov 26, 2008 9:26 am
Post subject: Re: Unable to delete files in "C:Winntsystem32" folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Is the volume FAT or NTFS? If NTFS take a look at the permissions.
What error message are you receiving when you try to delete the files?
Using a tool like OH.exe might reveal useful information.

John


tsgd84 wrote:

> 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

 >> Stay informed about: Unable to delete files in ""C:Winntsystem32"" folder 
Back to top
Login to vote
Twayne

External


Since: Mar 18, 2008
Posts: 71



(Msg. 3) Posted: Wed Nov 26, 2008 9:45 am
Post subject: Re: Unable to delete files in "C:Winntsystem32" folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

> 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

You probably don't have ownership of the files; check their permissions
& if necessary take ownership to manage them.
 >> Stay informed about: Unable to delete files in ""C:Winntsystem32"" folder 
Back to top
Login to vote
LVTravel

External


Since: Jul 07, 2006
Posts: 107



(Msg. 4) Posted: Wed Nov 26, 2008 1:55 pm
Post subject: Re: Unable to delete files in "C:Winntsystem32" folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Twayne" wrote in message

>> 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
>
> You probably don't have ownership of the files; check their permissions &
> if necessary take ownership to manage them.
>

They may also be protected system files in that folder. Most of the files
in that folder are part of the NT operating system. Deleting them may cause
the machine to give unpredictable results or totally crash.
 >> Stay informed about: Unable to delete files in ""C:Winntsystem32"" folder 
Back to top
Login to vote
"John John

External


Since: May 12, 2008
Posts: 75



(Msg. 5) Posted: Wed Nov 26, 2008 3:27 pm
Post subject: Re: Unable to delete files in "C:Winntsystem32" folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

LVTravel wrote:

> "Twayne" wrote in message
>
>
>>>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
>>
>>You probably don't have ownership of the files; check their permissions &
>>if necessary take ownership to manage them.
>>
>
>
> They may also be protected system files in that folder. Most of the files
> in that folder are part of the NT operating system. Deleting them may cause
> the machine to give unpredictable results or totally crash.

There is no WFP in NT4.

John
 >> Stay informed about: Unable to delete files in ""C:Winntsystem32"" folder 
Back to top
Login to vote
LVTravel

External


Since: Jul 07, 2006
Posts: 107



(Msg. 6) Posted: Wed Nov 26, 2008 4:42 pm
Post subject: Re: Unable to delete files in "C:Winntsystem32" folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"John John (MVP)" wrote in message

> LVTravel wrote:
>
>> "Twayne" wrote in message
>>
>>
>>>>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
>>>
>>>You probably don't have ownership of the files; check their permissions &
>>>if necessary take ownership to manage them.
>>>
>>
>>
>> They may also be protected system files in that folder. Most of the
>> files in that folder are part of the NT operating system. Deleting them
>> may cause the machine to give unpredictable results or totally crash.
>
> There is no WFP in NT4.
>
> John
>

I agree but deleting out of that folder is just asking for trouble with the
install unless the OP really knows what he is deleting. Just trying to head
off issues.
 >> Stay informed about: Unable to delete files in ""C:Winntsystem32"" folder 
Back to top
Login to vote
tsgd84

External


Since: Nov 26, 2008
Posts: 3



(Msg. 7) Posted: Thu Nov 27, 2008 12:20 am
Post subject: Re: Unable to delete files in "C:Winntsystem32" folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks for all your help.

I have checked the permission of those files.
The file have "Full Control" for administrator user
I am running the application as administrator user.

Thanks
Deenad

On Nov 27, 2:42 am, "LVTravel" wrote:
> "John John (MVP)" wrote in messagenews:OoMciKAUJHA.5376@TK2MSFTNGP02.phx.gbl...
>
>
>
> > LVTravel wrote:
>
> >> "Twayne" wrote in message
> >>
>
> >>>>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
>
> >>>You probably don't have ownership of the files; check their permissions &
> >>>if necessary take ownership to manage them.
>
> >> They may also be protected system files in that folder.  Most of the
> >> files in that folder are part of the NT operating system.  Deleting them
> >> may cause the machine to give unpredictable results or totally crash.
>
> > There is no WFP in NT4.
>
> > John
>
> I agree but deleting out of that folder is just asking for trouble with the
> install unless the OP really knows what he is deleting.  Just trying to head
> off issues.
 >> Stay informed about: Unable to delete files in ""C:Winntsystem32"" folder 
Back to top
Login to vote
"John John

External


Since: May 12, 2008
Posts: 75



(Msg. 8) Posted: Thu Nov 27, 2008 8:25 am
Post subject: Re: Unable to delete files in "C:Winntsystem32" folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

What error message are you receiving when you try to delete the files?

John

tsgd84 wrote:
> Thanks for all your help.
>
> I have checked the permission of those files.
> The file have "Full Control" for administrator user
> I am running the application as administrator user.
>
> Thanks
> Deenad
>
> On Nov 27, 2:42 am, "LVTravel" wrote:
>
>>"John John (MVP)" wrote in messagenews:OoMciKAUJHA.5376@TK2MSFTNGP02.phx.gbl...
>>
>>
>>
>>
>>>LVTravel wrote:
>>
>>>>"Twayne" wrote in message
>>>>
>>
>>>>>>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
>>
>>>>>You probably don't have ownership of the files; check their permissions &
>>>>>if necessary take ownership to manage them.
>>
>>>>They may also be protected system files in that folder. Most of the
>>>>files in that folder are part of the NT operating system. Deleting them
>>>>may cause the machine to give unpredictable results or totally crash.
>>
>>>There is no WFP in NT4.
>>
>>>John
>>
>>I agree but deleting out of that folder is just asking for trouble with the
>>install unless the OP really knows what he is deleting. Just trying to head
>>off issues.
>
>
 >> Stay informed about: Unable to delete files in ""C:Winntsystem32"" folder 
Back to top
Login to vote
Randem

External


Since: Nov 22, 2008
Posts: 41



(Msg. 9) Posted: Thu Nov 27, 2008 9:52 pm
Post subject: Re: Unable to delete files in "C:Winntsystem32" folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

What are the file names of the files you want to delete?

--
Randem Systems
Your Installation Specialist
The Top Inno Setup Script Generator
http://www.randem.com/innoscript.html
http://www.rndem.com/installerproblems.html
http://www.randem.com/vistainstalls.html
http://www.financialtrainingservices.org


"tsgd84" wrote in message

Thanks for all your help.

I have checked the permission of those files.
The file have "Full Control" for administrator user
I am running the application as administrator user.

Thanks
Deenad

On Nov 27, 2:42 am, "LVTravel" wrote:
> "John John (MVP)" wrote in
> messagenews:OoMciKAUJHA.5376@TK2MSFTNGP02.phx.gbl...
>
>
>
> > LVTravel wrote:
>
> >> "Twayne" wrote in message
> >>
>
> >>>>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
>
> >>>You probably don't have ownership of the files; check their permissions
> >>>&
> >>>if necessary take ownership to manage them.
>
> >> They may also be protected system files in that folder. Most of the
> >> files in that folder are part of the NT operating system. Deleting them
> >> may cause the machine to give unpredictable results or totally crash.
>
> > There is no WFP in NT4.
>
> > John
>
> I agree but deleting out of that folder is just asking for trouble with
> the
> install unless the OP really knows what he is deleting. Just trying to
> head
> off issues.
 >> Stay informed about: Unable to delete files in ""C:Winntsystem32"" folder 
Back to top
Login to vote
tsgd84

External


Since: Nov 26, 2008
Posts: 3



(Msg. 10) Posted: Wed Dec 03, 2008 12:39 am
Post subject: Re: Unable to delete files in "C:Winntsystem32" folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thnaks for all your suggestions.
I believe that those files were used by some other services.
Once I found and stopped those services, the issue is resolved.

Thanx
Deenad

On Nov 28, 12:52 pm, "Randem" wrote:
> What are the file names of the files you want to delete?
>
> --
> Randem Systems
> Your Installation Specialist
> The Top Inno Setup Script Generatorhttp://www.randem.com/innoscript.htmlhttp://www.rndem.com/ins...lerprob
>
> "tsgd84" wrote in message
>
>
> Thanks for all your help.
>
> I have checked the permission of those files.
> The file have "Full Control" for administrator user
> I am running the application as administrator user.
>
> Thanks
> Deenad
>
> On Nov 27, 2:42 am, "LVTravel" wrote:
>
> > "John John (MVP)" wrote in
> > messagenews:OoMciKAUJHA.5376@TK2MSFTNGP02.phx.gbl...
>
> > > LVTravel wrote:
>
> > >> "Twayne" wrote in message
> > >>
>
> > >>>>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
>
> > >>>You probably don't have ownership of the files; check their permissions
> > >>>&
> > >>>if necessary take ownership to manage them.
>
> > >> They may also be protected system files in that folder. Most of the
> > >> files in that folder are part of the NT operating system. Deleting them
> > >> may cause the machine to give unpredictable results or totally crash..
>
> > > There is no WFP in NT4.
>
> > > John
>
> > I agree but deleting out of that folder is just asking for trouble with
> > the
> > install unless the OP really knows what he is deleting. Just trying to
> > head
> > off issues.
 >> Stay informed about: Unable to delete files in ""C:Winntsystem32"" folder 
Back to top
Login to vote
"John John

External


Since: May 12, 2008
Posts: 75



(Msg. 11) Posted: Wed Dec 03, 2008 10:26 am
Post subject: Re: Unable to delete files in "C:Winntsystem32" folder [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

You're welcome, thanks for letting us know how you fixed it.

John

tsgd84 wrote:

> Thnaks for all your suggestions.
> I believe that those files were used by some other services.
> Once I found and stopped those services, the issue is resolved.
>
> Thanx
> Deenad
>
> On Nov 28, 12:52 pm, "Randem" wrote:
>
>>What are the file names of the files you want to delete?
>>
>>--
>>Randem Systems
>>Your Installation Specialist
>>The Top Inno Setup Script Generatorhttp://www.randem.com/innoscript.htmlhttp://www.rndem.com/ins...lerprob
>>
>>"tsgd84" wrote in message
>>
>>
>>Thanks for all your help.
>>
>>I have checked the permission of those files.
>>The file have "Full Control" for administrator user
>>I am running the application as administrator user.
>>
>>Thanks
>>Deenad
>>
>>On Nov 27, 2:42 am, "LVTravel" wrote:
>>
>>
>>>"John John (MVP)" wrote in
>>>messagenews:OoMciKAUJHA.5376@TK2MSFTNGP02.phx.gbl...
>>
>>>>LVTravel wrote:
>>
>>>>>"Twayne" wrote in message
>>>>>
>>
>>>>>>>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
>>
>>>>>>You probably don't have ownership of the files; check their permissions
>>>>>>&
>>>>>>if necessary take ownership to manage them.
>>
>>>>>They may also be protected system files in that folder. Most of the
>>>>>files in that folder are part of the NT operating system. Deleting them
>>>>>may cause the machine to give unpredictable results or totally crash.
>>
>>>>There is no WFP in NT4.
>>
>>>>John
>>
>>>I agree but deleting out of that folder is just asking for trouble with
>>>the
>>>install unless the OP really knows what he is deleting. Just trying to
>>>head
>>>off issues.
>
>
 >> Stay informed about: Unable to delete files in ""C:Winntsystem32"" folder 
Back to top
Login to vote
Display posts from previous:   
   Windows XP (Home) -> General Discussion All times are: Eastern Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
  Windows XP
 Win 2000/NT/98/ME
 Windows Vista!


[ Contact us | Terms of Service/Privacy Policy ]