Menu

#18 "rme" AutoHotKey script submission

New
nobody
command (6)
Medium
2010-06-01
2008-08-02
Anonymous
No

Originally created by: kijoshua...@gmail.com

/*
removes empty folders.

really simple due to the way FileRemoveDir works
(another flag is needed before it would remove a non-empty directory)

Recursive searching could be used... but why bother when you can use
scripts like this on search results!

By the way, selecting files doesn't matter (they're just ignored).
*/
Loop %0%
{
    folder := %A_Index%
    FileRemoveDir %folder%                ;this shouldn't be a problem for files, given
that Vista at least doesn't allow for a file and folder in the same
directory to have the same name.
}

QUIT:
return

Related

Tickets: #126

Discussion

  • Anonymous

    Anonymous - 2008-08-02

    Originally posted by: tortoisesvn

    (No comment was entered for this change.)

    Labels: -Type-Defect command

     
  • Anonymous

    Anonymous - 2008-08-02

    Originally posted by: kijoshua...@gmail.com

    Compiled version (doesn't require AutoHotKey to run)

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.