No matter what I do, everytime I delete the "*.wav,*.mid,*.mp3,*.wma,*.ogg" entry in the DCC Folders option, it ALWAYS comes back. It's really annoying.
And there seems to be no way to prevent mIRC from replacing spaces with underscores in filenames?
Addressing your renaming files with spaces in the name, the following remote will do what you wish, with one exception: If the target filename already exits, it will tell you it was unable to rename the file and will give you both filenames so you can manually correct the problem.
on *:FILERCVD:*.*:{
[color:green]; Replace the underscore with spaces,
; then remove any 2+ consecutive spaces in the filename.[/color]
tokenize 32 $replace($filename,_,$chr(32))
[color:green]; Check to make sure the file we want to rename this file
; to doesn't already exist.[/color]
if (!$isfile($+(",$1-,"))) {
.rename $shortfn($filename) $+(",$1-,")
echo $color(info2) -ati2 * You have just received $nopath($1-)
}
[color:green]; Otherwise, complain about it for manual resolution.[/color]
else echo $color(ctcp) -eati2 * File $+(",$1-,") exists: Unable to rename $+(",$filename,")
}
I didn't understand your first problem well enough to even begin to guess what the problem might be.
If you go to the mIRC options and then scroll down to DCC -> Folders...
The very top option is called DCC Get Folders, in that list is an entry that is called "*.wav,*.mid,*.mp3,*.wma,*.ogg"...
No matter how many times I delete that entry, it will always come back when I re-start mIRC.
I hope I made more sense this time.
Btw, thank you for that script.
Isn't there eventually going to be an option in mIRC itself to disable this behaviour?
I had that problem, the mirc.ini file was messed up on the "ignore=" and "accept=" lines, so you might want to check them. Defaults:
ignore=*.bat,*.com,*.dll,*.exe,*.htm,*.html,*.ini,*.js,*.lnk,*.mrc,*.pif,*.pl,*.scr,*.shs,*.vbs
accept=*.bmp,*.gif,*.log,*.jpg,*.mid,*.mp3,*.ogg,*.png,*.txt,*.wav,*.wma,*.zip
Those lines are fine.
[extensions]
n0=defaultEXTDIR:C:\Documents and Settings\jcarle\Desktop\
n1=*.wav,*.mid,*.mp3,*.wma,*.oggEXTDIR:sounds\
The n1 line is the one I keep deleting and keeps coming back. No matter whether I delete it from a dialog or by physically delete it from the mirc.ini file, mIRC keeps re-writing that line.
mIRC puts the underscores in because it cannot play them via CTCP unless the filename is one word.
To delete the sound folder just point the sound downloads somewhere else (whereever you store your sound files is a good idea) and then delete the sounds folder and it will stay away. This works for me anyway.
Ahhhh yes, but I was thinking of mIRC and how it assumes that /sound firstword secondword thirdword.mp3 ends up being /sound firstword.wav...
mIRC will /splay just fine but seemingly not /sound a multi-word mp3 filename, commas or not.
Correct, /splay will work fine without the quotation marks, but /sound needs them to distinguish between filename and message
/sound [target]
"a multiple word filename.mp3
" [message]
(Note the quotation marks in red)
It's not the physical folder that I can't delete, it's the association within mIRC... Specifically the "*.wav,*.mid,*.mp3,*.wma,*.ogg" entry.
Those sound folder associations are needed by mirc sounds commands, so they can not be deleted, otherwise builtin mirc identifiers like $wavedir, $mididir , $mp3dir and others would error. It doesnt hurt anything having this entry, if you dont use sounds, just ignore it.
errr I picked the wrong $identifiers as an example, those ones are set elsewhere, but I think you get the point.
My particular issue with this association is that to be able to set my download directory for incoming transfer I have to set folders in 2 different associations. It's really quite frustrating.