blob: c1662bd6d1c80c2fcb10df92436b45dc287cc64e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
<html>
<head>
<title>User Defined Cleanups</title>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
<link rel="stylesheet" type="text/css" href="format.css">
</head>
<BODY>
<h2>User Defined Cleanups</h2>
<p><i>This feature is for experts.</i></p>
<p>You can define up to 10 custom cleanup actions. The cleanups are specified by <i>command
lines</i>.
</p>
<p>Select an entry in the list an set it to "enabled". Choose a title, the title
appears in the menus.
</p>
<p>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.
</p>
<h3>Examples</h3>
<p>
<ul>
<li>
<pre>dir /b > dir.txt</pre>
List the filenames to the text file dir.txt.</li>
<li>
<pre>del *.bak</pre>
Delete all *.bak files in the current directory.</li>
<li>
<pre>del /s *.bak *.tmp</pre>
Recursively delete all *.bak and *.tmp files.</li>
<li>
<pre>windirstat.exe "%p"</pre>
Call up a second instance of WinDirStat with the path of the selected directory
(a PATH to windirstat.exe must be set).</li>
</ul>
</p>
<h3>Examples (NT and higher)</h3>
<p>
<ul>
<li>
<pre>echo %n & pause</pre>
Display the name of the current directory.</li>
<li>
<pre>cd & pause</pre>
Display the current path and wait for a key stroke.</li>
<li>
<pre>cd .. && myzip "%n"</pre>
Compress the selected directory (with the hypothetic tool myzip).</li>
</ul>
</p>
<p>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.</p>
<h3>Assembly of the command line</h3>
<p>Suppose you enter the command line
<pre>xyz</pre>
. WinDirStat then trys to start the following process:
<pre>%COMSPEC% /c xyz</pre>
</p>
<h3>More Options</h3>
<p>Specify, for which item types the cleanup works.</p>
<p>Specify, whether the cleanup shall be applied recursively on all subdirectories
(depth first).</p>
<p>The other options should be clear.</p>
</BODY>
</html>
|