Giter Site home page Giter Site logo

findnullifiedfiles's Introduction

FindNullifiedFiles

FindNullifiedFiles icon

This is a quick&dirty small utility I wrote to find all the files having only nulls that are inside an specified folder (or subfolders).

I needed this to find a lot of files a cloud drive I was using broke, filling them with nulls.

It's written with .NET 5 and will work in Windows, Linux and Mac, although I've only compiled it for Windows (just open the project and compile it for your desired operating system).

Usage

FindNullifiedFiles PathToFolder [Max Age of files (30)] [Number of butes to inspect (10)]

By default, it will search for files with a maximum age of 30 days, and instead of reading the full file contents, for the sake of speed, it will read by default only the first 10 bytes to check them for nulls. You can change both parameters from the command line:

FindNullifiedFiles "C:\My Files" 90 30 > MyNullFiles.txt

This will search all the files inside the C:\My Files folder and subfolders, with a maximum age of 30 days that have a null in the first 30 bytes and send the results to a .txt file in the current folder. You can then use the text file to process the files with Microsoft Excel or any other system you want.

Please note that the program shows some information in the first ("Beginning...") and last lines (when the search was done and how many nullified files it has found) that you may want to remove.

If there's some kind of error reading a file you'll see a line that starts with "Error reading file...", so you can check it manually.

Hope this helps!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.