• 0

Software to delete files at Random


Question

I know my request my seems odd, but I need a software that deletes files from a folder (and subfolders) randomly to satisfy certain conditions. For example, I want to specify a large folder and request that it deletes files at random until the size of that folder is, say, 200 MBs.

Does anyone know of an utility that does this kind of stuff? And if someone needs to ask, I want to use this utility on large picture galleries (jpg's) to reduce Hard-drive usage.

Link to comment
https://www.neowin.net/forum/topic/943558-software-to-delete-files-at-random/
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Why delete them at random? Why not just start at the oldest pics, put the ones that you really really want to keep on a CD/DVD and then delete the rest? I can understand the mentality of "but when I see them I'll want to keep all of them" but ultimately you just need to man up like I do with films, music and pictures and say, "once these are gone, a week from now I won't remember what they were."

At least this way you'd be sure that nothing gets accidentally deleted by a random deletion.

However, to answer your question, I don't think such a program exists. Try looking in to contracting a virus though, I hear some of them are quite good at deleting files randomly...

  • 0
  On 06/10/2010 at 09:58, dancsi said:

Well, you can always write a quick-n-dirty program in some of the .NET languages, or I guess that there is a way to do it with a powershell script

Yeah, I might end up doing that... Just thought there might be a good general purpose utility for this kind of task.

  • 0

Deleting pictures at "random" is not really the correct answer. Come on you have to be kidding, that's the solution you come up with??

Here are better solutions.

Delete/Archive the pictures you do not need! Continue to justify deletion/archival based upon some criteria that ranks importance of the images that should be maintained in the gallery until goal of storage space used is obtained.

Reduce the file size of the images to fit all of them in the space you have, be it either through reduction in pixels x pixels size or since jpg by quality of the image.

Get more space to allow for current images at current size and quality, better yet increase size to allow for growth. (BEST Solution)

Some combination of all of the above.

Delete at random?? That's just plan insane!

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Gemini in Google Sheets can now generate fully editable charts by David Uzondu Back in January, Google introduced a feature in Google Sheets powered by Gemini that lets you ask the AI to create charts from your data. The problem was, these charts were just static pictures, slapped on top of your cells. You could not edit them, and they would not update if your data changed. Now, the company has upgraded the feature so you can edit the charts however you want, plus they stay synced with your data as it changes. The process is quite straightforward. You use the Gemini side panel and just type what you want, like "create a bar chart showing campaign performance by market." Gemini then builds the chart, and when you insert it, the chart appears in a completely new tab within your spreadsheet. From that new home, you have total control. You can change the title, tweak the colors, and adjust all the little details just like any normal chart you would build yourself. It is not a completely perfect system, however. The biggest catch is that the editable chart is linked to the data in that new tab, not your original data source. So if you want the chart to reflect new numbers, you have to update the data in the chart’s dedicated tab. This is a bit of a weird detour from how standard Sheets charts have always worked, where they update directly from the source cells. For certain, more complex chart types, Google also notes that Gemini might still fall back to spitting out a static image, so your mileage may vary. The full rollout began recently, with Google expecting it to reach everyone within one to three days. This update is available for a bunch of Google Workspace accounts, including Business Standard, Business Plus, Enterprise Standard, and Enterprise Plus. It is also included for anyone with a Google One AI Premium plan, which the company has since renamed to Google AI Pro and Ultra. If you are on one of the old Gemini Business or Enterprise add-ons that Google stopped selling back on January 15, 2025, you get this feature too. Just make sure your admin has the "Smart features and personalization" setting turned on, or none of this will work.
    • iOS feature updates are lacklustre. I know it’s difficult with a mature OS, but imagine the announcements without Liquid Glass. Pretty thin.
    • Should you buy the Kindle Scribe? What to know about Amazon's e-reader for notes and reading by Paul Hill We’re all familiar with the Amazon Kindle lineup of affordable e-readers, but did you know that Amazon has a Kindle for writing on too? That’s where the Kindle Scribe comes in. The Scribe is more notebook sized, rather than book sized and has the largest screen Amazon has ever included in a Kindle. With this device, Amazon is trying to expand the paper reading-like experience to paper writing-like. With the current discount, you can save up to 25%, with prices as low as $299.99. There are three models available: a 16GB, 32GB, and 64GB model. You cannot expand the storage so be sure to pick the size you’ll need from the get-go. The Kindle Scribe won’t be the perfect choice if all you want to do is read books, however, if you’re a student or professional who wants to take notes, or an avid reader that wants to make annotations, then this could be a good pick for you. What it does The Kindle Scribe features a large 10.2-inch glare-free display with a 300 ppi density. It comes with a Premium Pen that makes it feel like you’re writing on paper as you jot down your notes. To make writing easy, you get Active Canvas for in-book notes and a built-in notebook with templates. You can import and write on PDFs and documents via Send to Kindle, including sending directly from Word if you have a Microsoft 365 subscription. Once you have written out your notes, the Kindle Scribe allows you to summarize them using artificial intelligence. You can even customize the length and tone of your notes. You can also refine your notes by converting your handwritten words into a script font. One of the standout features of other Kindle devices is their spectacular battery life, and the Kindle Scribe promises the same. The battery will last you up to 12 weeks for reading and up to 3 weeks for writing. Furthermore, Amazon has used 18% recycled materials including 100% recycled aluminum parts, and it comes in fully recyclable packaging. Finally, and it shouldn’t really need mentioning, the Kindle Scribe has full access to the Kindle Store so you can quickly and easily gain access to all of the latest books. Should you buy it? If you are looking for a distraction free gadget to read books on and take notes then the Kindle Scribe is definitely worth considering now that it is at its lowest price to date. Students and professionals are two groups who might benefit the most from this model. If you’re just looking for a Kindle for reading on Amazon, there are other models that may be better such as the Paperwhite or Oasis. The Kindle Scribe is a pretty radical change for a Kindle device with its very large display and writing capabilities. If you’ve been waiting for something like this, then it may justify an upgrade from an older Kindle. If you do decide to buy, make sure to get enough storage from the get go. Amazon Kindle Scribe (16GB): $299.99 (Amazon US) / MSRP $399.99 Amazon Kindle Scribe (32GB): $319.99 (Amazon US) / MSRP $419.99 Amazon Kindle Scribe (64GB, Tungsten): $349.99 (Amazon US) / MSRP $449.99 Amazon Kindle Scribe (64GB, Metallic Jade): $349.99 (Amazon US) / MSRP $449.99 This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases.
    • They shouldn’t listen to stupid ideas and this is a stupid idea. Many issues can be fixed via the registry but not with general registry cleaners. Sometimes a value needs to be changed or a new key needs to be created or deleted but there is no way a general cleaner could make that distinction. Making daily backups of your system state is a better idea so if your system does start behaving differently you can revert to a previous date. System Restore used to be helpful in this area but doesn’t seem as reliable these days. A full registry restore is often helpful.
  • Recent Achievements

    • Week One Done
      IAMFLUXX earned a badge
      Week One Done
    • One Month Later
      Æhund earned a badge
      One Month Later
    • One Month Later
      CoolRaoul earned a badge
      One Month Later
    • First Post
      Kurotama earned a badge
      First Post
    • Collaborator
      Carltonbar earned a badge
      Collaborator
  • Popular Contributors

    1. 1
      +primortal
      506
    2. 2
      ATLien_0
      269
    3. 3
      +FloatingFatMan
      241
    4. 4
      +Edouard
      201
    5. 5
      snowy owl
      163
  • Tell a friend

    Love Neowin? Tell a friend!