Windows 8 and 8.1 Forums

Bat script to delete flash cookies - I can't get it right!

  1. #1

    Bat script to delete flash cookies - I can't get it right!

    Hi! I am trying to set up a script to delete flashcookies on a daily basis as I don't want corporations, spammers and spooks to track me online..

    The flash cookies are saved here: D:\Users\[username]\AppData\Roaming\Macromedia\Flash Player\#SharedObjects
    Often they are inside a folder, so the folders inside Shared Objects must be deleted too.

    I put the below, but it doesn't work! Any ideas why?

    del /F /Q /S D:\Users\Hanni\AppData\Roaming\Macromedia\Flash Player\#SharedObjects\*.*
    RMDIR /S /Q D:\Users\Hanni\AppData\Roaming\Macromedia\Flash Player\#SharedObjects

      My System SpecsSystem Spec

  2. #2

    Just at first glance, Yes,,,,, you must put the whole path inside of Quotes.

    You're actually performing a DOS command routine, and DOS cannot read that long path, without the Quotes. OK?

    Your command line should look more like this:

    del /F /Q /S "D:\Users\Hanni\AppData\Roaming\Macromedia\Flash Player\#SharedObjects\*.*"

    And once you've deleted everything in a folder, it's not necessary to remove the folder itself.

    But, I have to ask..... why is that stuff on Drive "D" ???
    I would usually expect to find it on drive "C". Many computers don't even have a drive "D".

    Good Luck,
      My System SpecsSystem Spec

  3. #3

    Posts : 205
    Windows 8.1 64bit

    AFAIK, CCleaner will do that. I just checked C:\Users\[username]\AppData\Roaming\Macromedia\Flash Player\#SharedObjects and found no flash cookies. I run CCleaner at least once a day. Right click Recycle Bin and Run CCleaner from there.
      My System SpecsSystem Spec

  4. #4

    Thanks Technomage!
    Yes, it makes sense with the quotes - I wasn't sure if they were needed or not, and I removed them since it seemed to work anyway.

    But actually: Folders are created INSIDE the cookie folder, so I must delete folders inside that folder as well. Along with all the content. That's why I needed to use RMDIR or RD. (Microsoft dropped deltree...)
    So I'm actually more in need of help with the RMDIR command. Should have said!

    Moving the User folder to D: is an old trick in the IT world. It has a lot of benefits. Basically you do that, keep a clone of your hard drive and that way you are always safe from anything that may hit you. You then keep a backup of the User folder on the actual C drive, but without actually using it.

    Odos - CC cleaner can do it, but I don't want to run that all the time and I don't think I have a license for it anyway. I prefer doing it with a script that's running on a schedule.

    I actually got del to work earlier, but I need the r
      My System SpecsSystem Spec

  5. #5

    Same applies - a path that contains a space should be enclosed in quotes...
      My System SpecsSystem Spec

  6. #6


    If your using FF you could use the flashblock addon.
    One of its options is to delete flash cookies when FF is closed.
    i think youll find flash cookies are also in your sys files
      My System SpecsSystem Spec

  7. #7

    I wanted help regarding how to delete the files, not tips about add-ons. I am aware that there are third party tools to delete flash cookies. All of them have various backsides and for that reason I want to manually delete the cookies.
    I am starting a new thread in which I will not mention the word cookie, so that the thread stays on topic.
      My System SpecsSystem Spec

Bat script to delete flash cookies - I can't get it right!

Similar Threads
Thread Forum
windows script host problem, cant find script
Hey guys. just finished formating my computer (using the built in windows 8 feature). once it was up and running i uninstalled all the built in stuff lenovo brings with the computer using revo uninstaller. in the procces i also removed all registry and files those programs left.. but now theres...
General Support
Google Chrome Cookies
When I remove cookies from Chrome, the following cookies remain after reopening the browser. I do visit You Tube, but I do not have an account. As stated, they are removed but automatically reappear when I open the browser without visiting YouTube. Why does Chrome automatically restore...
Browsers & Mail
Windows 8.1 Cookies Location
I can't seem to find the Cookies location in 8.1 In Windows 8 it was at: C:\Users\username\AppData\Roaming\Microsoft I've unchecked "Hide protected operating system files (Recommended)" Any ideas where Cookies are stored in Windows 8.1??? James
Browsers & Mail
Flash drive delete prompt.
When I delete files from the hdd I have it set not to prompt me. So how to I turn off delete prompt, when deleting files from flash drive. Henry
General Support
I recently received a message form Microsoft that the charge for an application from the MS store was declined. I know that the problem is an expired date on my VISA card. When I go to the MS web site to attempt to update the date I get a message that the browser is set to not accept cookies .I...
Browsers & Mail
cookies cleared on reboot
Hello, I use CCleaner which lets me save certain cookies so I don't have to login forums I visit this being one of them.Every time I reboot the cookies are cleared. I s there a setting in IE10 that will prevent that? Thanks
Browsers & Mail

Eight Forums Android App Eight Forums IOS App Follow us on Facebook