• 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

    • People yearn for the good old days of IRC and truly open Internet, yet are dismissive of modern solutions like ActivityPub (which Mastodon pioneered) and Matrix. Make it make sense.
    • AI judges learn new tricks to fact-check and code better by Paul Hill Image via Pixabay AI researchers and developers are increasingly turning to large language models (LLMs) to evaluate the responses of other LLMs in a process known as “LLM-as-a-judge”. Unfortunately, the quality of these evaluations degrades on complex tasks like long-form factual checking, advanced coding, and math problems. Now, a new research paper published by researchers from the University of Cambridge and Apple outlines a new system that augments AI judges with external validation tools to improve their judgment quality. This system aims to overcome limitations found in both human and AI annotation. Humans face challenges and biases due to time limits, fatigue, and being influenced by writing style over factual accuracy while AI struggles with the aforementioned complex tasks. The Evaluation Agent that the researchers created is agentic so it can assess the response to determine if external tools are needed and utilizes the correct tools. For each evaluation, three main steps are passed through: initial domain assessment, tool usage, and a final decision. The fact-checking tool uses web search to verify atomic facts within a response; code execution leverages OpenAI’s code interpreter to run and verify code correctness; and math checker is a specialized version of the code execution tool for validating mathematical and arithmetic operations. If none of the tools are found to be useful for making judgments, the baseline LLM annotator is used to avoid unnecessary processing and potential performance regression on simple tasks. The system delivered notable improvements in long-form factual checking, with significant increases in agreement with ground-truth annotations across various baselines. In coding tasks, the agent-based approach significantly improved performance across all baselines. For challenging math tasks, the agents improved performance over some baselines, but not all, and overall agreement remained relatively low at around 56%. Notably, the researchers found that in long-form factual responses, the agent’s agreement with ground-truth was higher than that of human annotators. This framework is extensible, so in the future, other tools could be integrated to further improve LLM evaluation systems. The code for the framework will be made open source on Apple’s GitHub, but it isn’t up yet.
    • https://www.neowin.net/news/tags/mastodon/ In short: Federated Twitter (X)
    • Keep in mind it was purchased by an advertising company. I use SearxNG.
    • I am using Waterfox Private Search now that I started using the Waterfox browser on my PC and Android. Both work great* search waterfox net with full stops in between. * I have an issue where making comments on articles on various websites is difficult with Waterfox on Android as it randomly adds spaces and doubles up on text.
  • Recent Achievements

    • Collaborator
      fernan99 earned a badge
      Collaborator
    • Collaborator
      MikeK13 earned a badge
      Collaborator
    • One Month Later
      Alexander 001 earned a badge
      One Month Later
    • One Month Later
      Antonio Barboza earned a badge
      One Month Later
    • Week One Done
      Antonio Barboza earned a badge
      Week One Done
  • Popular Contributors

    1. 1
      +primortal
      588
    2. 2
      ATLien_0
      219
    3. 3
      Michael Scrip
      170
    4. 4
      Xenon
      136
    5. 5
      +FloatingFatMan
      126
  • Tell a friend

    Love Neowin? Tell a friend!