I try to copy a file (i know that command) but i want to catch the error message of it... but if there is now errormessage then the bot zefl will give an error
Code: Select all
proc { ... } {
....
catch {[file copy -force ${rtmemomem} ${rtmemotmp}]} errMsg
putlog "Result: $errMsg"
if {$errMsg == ""} {
.....
} else {
......
}
}
Code: Select all
Result: invalid command name "" already thx for thous hwo can hel pme out
greets TeDDyBeeR