Giter Site home page Giter Site logo

marceln / superdelete Goto Github PK

View Code? Open in Web Editor NEW
114.0 7.0 20.0 64 KB

SuperDelete is a Windows command line application (.NET) that can be used to delete files and directories with very long paths - longer than 260 characters.

License: Apache License 2.0

C# 100.00%
windows maxpath longpath long path

superdelete's Introduction

SuperDelete

About

A Windows command-line tool that can be used to delete files and folders with very long paths (longer than MAX_PATH 260 characters). It supports paths as long as 32767 characters. It works by using extended-length paths and the Unicode versions of the WinApi functions for enumerating and deleting files. In addition, it supports bypassing ACL checks for deleting folders if the user has administrative rights on the drive.

More info about the mechanism can be found in MSDN article Naming Files, Paths, and Namespaces, in section "Maximum Path Length Limitation".

It's written in C#/NET and provides VS projects for building for .NET 3.5, 4.0, 4.5, 4.6

Usage

It's fairly simple. Just open a command-line window and run the tool. It takes only one parameter, which can be a full file or folder path.

With confirmation

SuperDelete.exe fullPathToFileOrFolder

Silent mode

The tool supports an additional command line argument which suppresses the confirmation message. Could be used in automating some tasks. The argument is --silent or -s.

SuperDelete.exe --silent fullPathToFileOrFolder

Bypass ACLs

In the case where the user has administrative rights on the drive, the tool can bypass ACL checks and remove the file even if the user doesn't have rights in the ACL. This is useful in cases where a drive is moved from another machine or Windows installation.

SuperDelete.exe --bypassAcl fullPathToFileOrFolder

Printing stack trace

If there is an exception, this will print the callstack where the exception occurred. This is mostly useful for debugging.

SuperDelete.exe --printStackTrace fullPathToFileOrFolder

Downloads

The latest release is SuperDelete 1.2.0 and you can get it from the Releases page.

superdelete's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

superdelete's Issues

Add to context menu, integrate file explorer

This looks pretty cool, but I'm wondering if it's possible to integrate this into the contact menu where you can right click and delete with superdelete and it takes care of the parameters automatically. Also if there is a way to set this as the regular default handler so when you delete something, SuperDelete is invoked.

three request

three request
1 SuperDelete -s --bypassAcl c:\test*frame*.*
joker possible feature request

2 SuperDelete -s --bypassAcl --killlockers_EXEs c:\test*frame*.*
force delete example firefox chrome everything processes lockers.
killtasks all.

3 SuperDelete -s --bypassAcl --whichkilllockers_EXE_list c:\test*frame*.*
which lockers? get list

Sincerely

ERROR: Failed to remove reparse point

Trying to use these to delete some unwanted NAS files copied onto a clean Windows 2016 partition. Files over the 256 character limit have been a pain. When I try to run this command against large directories or files i get the error

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.