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

martienne

New Member
Member
Messages
128
Location
European Union
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?

Code:
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 Computer

System One

  • OS
    Win 8.1
    Computer type
    PC/Desktop
    CPU
    i5
    Motherboard
    ASUS
    Memory
    24 GB DDRAM3
    Graphics Card(s)
    NVIDIA GT430 x2
    Sound Card
    Audial
    Monitor(s) Displays
    2 x 28" Sharp
    Screen Resolution
    1360 x 768
    Hard Drives
    Samsung, Seagate, Toshiba, Hitachi, Western Digital
    PSU
    750 watt
    Cooling
    liquid closed
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,
TechnoMage :cool:
 

My Computer

System One

  • OS
    Win-8.1/Pro/64
    Computer type
    PC/Desktop
    System Manufacturer/Model
    Acer X-1200
    CPU
    AMD 2 Core
    Motherboard
    Acer
    Memory
    Crucial, 4GB
    Graphics Card(s)
    NVIDEA GeForce 9200
    Sound Card
    On Board
    Monitor(s) Displays
    24" Acer
    Hard Drives
    Sandisk, SSD 500GB
    PSU
    Acer
    Case
    SFF Slimline
    Keyboard
    emachines 101 key
    Mouse
    Logitech Wireless
    Internet Speed
    5 Meg
    Browser
    Firefox
    Antivirus
    Windows Defender
    Other Info
    Using Classic Shell on Win-8.1 /pro/64
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 Computer

System One

  • OS
    Windows 8.1 64bit
    Computer type
    PC/Desktop
    System Manufacturer/Model
    HP h8 envy 1534
    CPU
    AMD FX-6200 (3.8GHz)
    Motherboard
    M3970AM-HP (Angelica2) (Gigabyte)
    Memory
    10GB DDR3
    Graphics Card(s)
    Eyefinity Radeon HD 7570
    Browser
    Firefox
    Antivirus
    Kaskersky Internet Security 2016
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 Computer

System One

  • OS
    Win 8.1
    Computer type
    PC/Desktop
    CPU
    i5
    Motherboard
    ASUS
    Memory
    24 GB DDRAM3
    Graphics Card(s)
    NVIDIA GT430 x2
    Sound Card
    Audial
    Monitor(s) Displays
    2 x 28" Sharp
    Screen Resolution
    1360 x 768
    Hard Drives
    Samsung, Seagate, Toshiba, Hitachi, Western Digital
    PSU
    750 watt
    Cooling
    liquid closed
Same applies - a path that contains a space should be enclosed in quotes...
 

My Computer

System One

  • OS
    PC-DOS v1.0
    Computer type
    PC/Desktop
    System Manufacturer/Model
    IBM
    CPU
    Intel 8088, 4.77MHz
    Memory
    16K, 640K max
    Graphics Card(s)
    What's that?
    Sound Card
    Not quite
    Screen Resolution
    80 X 24 text
    Hard Drives
    dual 160KB 5.25-inch disk drives
flashblock

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
Roy
 

My Computer

System One

  • OS
    8.1 x64
    Computer type
    Laptop
    System Manufacturer/Model
    x55a asus
    Antivirus
    bitdefender
    Other Info
    this laptop was/is still posted on asus website as W7
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 Computer

System One

  • OS
    Win 8.1
    Computer type
    PC/Desktop
    CPU
    i5
    Motherboard
    ASUS
    Memory
    24 GB DDRAM3
    Graphics Card(s)
    NVIDIA GT430 x2
    Sound Card
    Audial
    Monitor(s) Displays
    2 x 28" Sharp
    Screen Resolution
    1360 x 768
    Hard Drives
    Samsung, Seagate, Toshiba, Hitachi, Western Digital
    PSU
    750 watt
    Cooling
    liquid closed
Back
Top