Jump to content

how to delete file with mask?


hlvb

Recommended Posts

hello, i need the tool can delete file with mask. ex: *.tmp, ~$*.xls...

my computer have many file and include many file too longpath.

windows can not delete longpath file.

thanks.

Link to comment
Share on other sites


What are the exact circumstances that created these troublesome files that you cannot easily delete?  If they are just temporary files that are in normal locations, then a program such as CCleaner might be able to do the job for you.  If you need to delete them manually, you can usually move the troublesome files to a location closer to the root of the drive and delete it after the move.  Or you can start with the folders closest to the root and rename them to a shorter name, ie a1, a2, a3, etc.  Just do that until you end up with paths that are within the path limits.

 

Cheers and Regards

Link to comment
Share on other sites

Or you can use the "subst" command to crete a temporary drive (letter) that includes the name of several levels of those subfolders.

example;

subst T: C:\data\any_long_name\any_other_long_name_that_makes_things_worse\

 

Here, T:\ will show those files within that directory with 63 less characters in the path name.

Depending on the OS you are using, doing the cleaning could be quite straightforward.

Then you'll tell us why you asked this in the "Hardware" forum. :P

Edited by Ponch
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...