mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2003
Posts: 6
J
jcarle Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: Jan 2003
Posts: 6
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?

Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
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.
Code:

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.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
Joined: Jan 2003
Posts: 6
J
jcarle Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: Jan 2003
Posts: 6
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?

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
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

Joined: Jan 2003
Posts: 6
J
jcarle Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: Jan 2003
Posts: 6
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.

Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
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.

Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
Sure it can smile
/sound [target] "long file name.wav"

Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
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.

Joined: Dec 2002
Posts: 699
N
Fjord artisan
Offline
Fjord artisan
N
Joined: Dec 2002
Posts: 699
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) laugh

Joined: Jan 2003
Posts: 6
J
jcarle Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: Jan 2003
Posts: 6
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.

Joined: Dec 2002
Posts: 45
J
Ameglian cow
Offline
Ameglian cow
J
Joined: Dec 2002
Posts: 45
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.

Joined: Dec 2002
Posts: 45
J
Ameglian cow
Offline
Ameglian cow
J
Joined: Dec 2002
Posts: 45
errr I picked the wrong $identifiers as an example, those ones are set elsewhere, but I think you get the point.

Joined: Jan 2003
Posts: 6
J
jcarle Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
J
Joined: Jan 2003
Posts: 6
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.

Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
Ahhhhhh I see grin


Link Copied to Clipboard