View Single Post
Old 08-18-2007, 08:21 AM  
tuff
Senior Member
 
Join Date: Jan 2003
Posts: 277
Default

[FTP_Pre-Command_Events]
stor = TCL c:\im\silly\i\want\to\overwrite.tcl

overwrite.tcl

proc silly_overwrite {} {
global args path ioerror
set filename [lindex $args 1]
if {[string match -nocase "foo.nfo" $filename]} {
if {[file exists "$path\\$filename"]} {
catch {file delete -force -- "$path\\$filename"} error
}
}
}
silly_overwrite

hey presto!
__________________
#iotools #ioftpd (both on efnet)
tuff is offline