Leser: 19
2009-05-18T08:42:41 BrennerWie leider fast erwartet, Modul steht in der vorhandenen Installation nicht zur Verfügung und darf auch nicht nachinstalliert werden :-(
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
my $cmd = 'dfsutil.exe';
my @paths = split /;/,$ENV{PATH};
#defaults
my $selecting = "disabled" ;
my $selectingtext = "(No $cmd found!)";
my $height = 2;
my $weight = 30;
for my $p (@paths)
{
if (-x "$p\\$cmd")
{
$selecting="active";
$selectingtext="";
$height = 2;
$weight = 20;
};
};
my $button4 = $main->Button(
'-text' => "DFS Export $selectingtext",
'-justify' => "left",
'-height' => "$height" , '-width' => "$weight",
'-relief' => "raised",
'-state' => "$selecting",
'-command' => sub{BUTTON2() && $main->destroy();},
);