5 Einträge, 1 Seite |
1 2 3 4 5 6 7 8 9 10 11 12 13
#!/usr/bin/perl -w use File::Path; my $aufruf; my $path = "c:\\Temp\\Hugo"; my $path1 = "c:\\Temp\\Hugo1"; my $path2 = "c:\\Temp\\Hugo2"; my $debug = 1; rmtree( $path, 1 ); rmtree( $path1, 1 ); rmtree( $path2, 1 );
Xeno+2008-06-25 23:30:51--P.S.: Na ja, dann muss ich es halt komplett selbst schreiben. :-(
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Global $path = "c:\Temp\Hugo"; Global $path1 = "c:\Temp\Hugo1"; Global $path2 = "c:\Temp\Hugo2"; Global $debug = 1; Global $re = DirRemove($path, 1) _debug("DirRemove : " & $path, $re) Global $re = DirRemove($path1, 1) _debug("DirRemove : " & $path1, $re) Global $re = DirRemove($path2, 1) _debug("DirRemove : " & $path2, $re) Func _debug($command, $returnCode) If $debug = True Then If $re = True Then ConsoleWrite('OK : ' & $command & @CRLF) Else ConsoleWrite('Fehler : ' & $command & @CRLF) EndIf EndIf Return 1 EndFunc ;==>_debug
5 Einträge, 1 Seite |