MSFN Forum: How to delete a file on AppData folder? - MSFN Forum

Jump to content



If you are having issues with Windows after removing components and have come to ask for help, please attach (not paste) your Last Session.ini file to your post to facilitate quicker assistance.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How to delete a file on AppData folder? Rate Topic: -----

#1 User is offline   Cauptain 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 10-June 07

Posted 07 April 2009 - 05:29 PM

Hi plp,

I need a very help.

I want delete a file on C:\Documents and Settings\Administrator\Local Settings\AppData\Microsoft\Windows\UsrClass.dat.LOG - via .BAT file

I try this:


del /Q C:\Documents and Settings\Administrator\Local Settings\AppData\Microsoft\Windows\UsrClass.dat.LOG

erase /Q C:\Documents and Settings\Administrator\Local Settings\AppData\Microsoft\Windows\UsrClass.dat.LOG




Not working on XP but working on Vista OS.

This file is Hidden and System file.

Anyone help-me?


#2 User is offline   redxii 

  • Member
  • PipPip
  • Group: Members
  • Posts: 286
  • Joined: 18-August 05

Posted 07 April 2009 - 05:37 PM

Probably because it's a system file.

Are you experiencing any errors relating to this file or did it look at you funny?

#3 User is offline   Cauptain 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 10-June 07

Posted 07 April 2009 - 05:41 PM

View Postredxii, on Apr 7 2009, 08:37 PM, said:

Probably because it's a system file.

Are you experiencing any errors relating to this file or did it look at you funny?


It´s not funny man. I´m install a new AV soft (Trend).

My old AV (mcaffee) create a error on Outlook file. I need delete a extend.dat on OLK folder but in my home not use OLK. because this try on another file.

Tks for reply.

#4 User is offline   johnhc 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,246
  • Joined: 02-March 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 April 2009 - 05:55 PM

Cauptain, to begin with, since the file name contains blanks, it should be in quotes ("). If that still fails, try the /f switch (force).
Example: del /Q "C:\Documents and Settings\Administrator\Local Settings\AppData\Microsoft\Windows\UsrClass.dat.LOG " /f
I got this from Help and Support in the Start menu. Please let us know how it turns out. Enjoy, John.

#5 User is offline   redxii 

  • Member
  • PipPip
  • Group: Members
  • Posts: 286
  • Joined: 18-August 05

Posted 07 April 2009 - 05:58 PM

You should be able to delete it as long as the account it belongs to isn't logged on, so you have to have another administrator account to delete it from.

This post has been edited by redxii: 07 April 2009 - 05:59 PM


#6 User is offline   redxii 

  • Member
  • PipPip
  • Group: Members
  • Posts: 286
  • Joined: 18-August 05

Posted 07 April 2009 - 06:07 PM

Also you might be confused about the path to the file. In XP it's:

C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\Windows\UsrClass.dat.LOG

But still, if the account is logged in you can't delete it.

This post has been edited by redxii: 07 April 2009 - 06:08 PM


#7 User is offline   Cauptain 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 10-June 07

Posted 07 April 2009 - 06:11 PM

View Postjohnhc, on Apr 7 2009, 08:55 PM, said:

Cauptain, to begin with, since the file name contains blanks, it should be in quotes ("). If that still fails, try the /f switch (force).
Example: del /Q "C:\Documents and Settings\Administrator\Local Settings\AppData\Microsoft\Windows\UsrClass.dat.LOG " /f
I got this from Help and Support in the Start menu. Please let us know how it turns out. Enjoy, John.


Tks johnhc, but not working. :blushing:

#8 User is offline   johnhc 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,246
  • Joined: 02-March 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 April 2009 - 06:28 PM

Cauptain, did you do what redxii suggested? Do you get an error or does it just not delete the file? Please remove the /q switch and run it from a command prompt and post a screen shot. Enjoy, John.

#9 User is offline   Cauptain 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 10-June 07

Posted 07 April 2009 - 07:02 PM

Attached File  erro.jpg (115.06K)
Number of downloads: 6

Yes. Not work too. :blushing:

#10 User is offline   redxii 

  • Member
  • PipPip
  • Group: Members
  • Posts: 286
  • Joined: 18-August 05

Posted 07 April 2009 - 07:11 PM

You have to log out of the Administrator (Administrador) account and use another account to delete that file in the Administrator's profile folder.

#11 User is offline   Cauptain 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 10-June 07

Posted 07 April 2009 - 07:37 PM

View Postredxii, on Apr 7 2009, 10:11 PM, said:

You have to log out of the Administrator (Administrador) account and use another account to delete that file in the Administrator's profile folder.


It´s a hard ..No way, I create a new admin account, type de lines and...nothig.

Wheres my error??

#12 User is offline   johnhc 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,246
  • Joined: 02-March 08
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 07 April 2009 - 07:38 PM

Cauptain, you need to do what redxii says, but first, remove the /Q switch and run only the one with the quotes (") and /f. Please post a screen shot. Enjoy, John.

#13 User is offline   Cauptain 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 10-June 07

Posted 07 April 2009 - 08:12 PM

View Postjohnhc, on Apr 7 2009, 10:38 PM, said:

Cauptain, you need to do what redxii says, but first, remove the /Q switch and run only the one with the quotes (") and /f. Please post a screen shot. Enjoy, John.


Many many many Tks guys: redxii & johnhc :thumbup

The last tip work flawless. Yeah great team work :thumbup

I change the user for "actual user". PERFECT

del "C:\Documents and Settings\%USERNAME%\Dados de aplicativos\Microsoft\Outlook\extend.dat" /f

I´m to sleep very happy now.



Muito Obrigado :blushing:



Claudio Raphael "aka" Cauptain

#14 User is offline   Sp0iLedBrAt 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,587
  • Joined: 19-March 09
  • OS:XP Pro x86
  • Country: Country Flag

Posted 08 April 2009 - 04:55 AM

Have you considered in this forum the "Unlocker" software? It does really work and deletes any file, no matter what process it's stuck to or which user is logged in.

p.s. It's not my intention to advertise; I have found it as an nLite addon.

Regards

#15 User is offline   redxii 

  • Member
  • PipPip
  • Group: Members
  • Posts: 286
  • Joined: 18-August 05

Posted 08 April 2009 - 01:53 PM

Maybe not unless you want to screw up your profile..

#16 User is offline   Sp0iLedBrAt 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,587
  • Joined: 19-March 09
  • OS:XP Pro x86
  • Country: Country Flag

Posted 08 April 2009 - 03:03 PM

View Postredxii, on Apr 8 2009, 09:53 PM, said:

Maybe not unless you want to screw up your profile..

No, I don't ; it is a great solution to Cauptain's problem

#17 User is offline   mooms 

  • What ?
  • PipPip
  • Group: Members
  • Posts: 247
  • Joined: 13-October 07

Posted 09 April 2009 - 03:43 PM

I agree, Unlocker is very handy.

#18 User is offline   Cauptain 

  • Newbie
  • Group: Members
  • Posts: 15
  • Joined: 10-June 07

Posted 12 April 2009 - 05:01 AM

View PostSp0iLedBrAt, on Apr 8 2009, 06:03 PM, said:

View Postredxii, on Apr 8 2009, 09:53 PM, said:

Maybe not unless you want to screw up your profile..

No, I don't ; it is a great solution to Cauptain's problem



Sp0iLedBrAt, how do you do man?

I use Unlocker (nice soft), but this is to use on 500 users.

I have installed Trend AV on my network. My old AV mcafee forget the stupid DLL on all desktops.

Because this I need make a bat file for login script.

The help of redxii and johnhc was very crucial for result. Tks again guys.

But tks for reply.



Cauptain

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy