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