This is a script I wrote to unzip zip files, rename the files, move a file, and delete the file from my download folder.
now this is set for text and zip files. if the script recieves a text. It should be no problem renaming a file if you know what you want to remove out of the file name.
on *:FILERCVD:*: {
if .txt isin $filename {
set %rcvname $replace($nick,|,_) $+ .txt
if ( $exists($+(List\,%rcvname)) == $true ) { .remove $+(",List\,%rcvname,") }
.rename $filename $+(",list\,%rcvname,")
$upcnt
halt
}
if .zip isin $filename {
set %rcvname $nick $+ .txt
set %rcvzip $replace($nopath($filename),.zip,.txt)
if ( $exists($+(List\,%rcvname)) == $true ) { .remove $+(",List\,%rcvname,") }
//echo -s $dll(mUnzip.dll, Unzip, $filename "List\")
.remove $filename
.rename $+(",List\,%rcvzip,") $+(",List\,%rcvname,")
$upcnt
halt
}
}