## User Defined Cleanups

This feature is for experts.

You can define up to 10 custom cleanup actions. The cleanups are specified by command lines.

Select an entry in the list an set it to "enabled". Choose a title, the title appears in the menus.

Compose a command line. Use the "MSDOS prompt" (Windows 9x, command.com) or the "Command prompt" (NT, cmd.exe) to get help about the available commands and to test the command line.

### Examples

-     dir /b > dir.txt

  List the filenames to the text file dir.txt.

-     del *.bak

  Delete all *.bak files in the current directory.

-     del /s *.bak *.tmp

  Recursively delete all *.bak and *.tmp files.

-     windirstat.exe "%p"

  Call up a second instance of WinDirStat with the path of the selected directory (a PATH to windirstat.exe must be set).

### Examples (NT and higher)

-     echo %n & pause

  Display the name of the current directory.

-     cd & pause

  Display the current path and wait for a key stroke.

-     cd .. && myzip "%n"

  Compress the selected directory (with the hypothetic tool myzip).

The meaning of the placeholders %p, %n, %sp, %sn is shown in the dialog. Don't forget to enclose them in quotation marks, if necessary.

### Assembly of the command line

Suppose you enter the command line

    xyz

. WinDirStat then trys to start the following process:

    %COMSPEC% /c xyz

### More Options

Specify, for which item types the cleanup works. Be careful with UNC paths: a command prompt cannot chdir to UNC paths!

Specify, whether the cleanup shall be applied recursively on all subdirectories (depth first).

The other options should be clear.