mIRC Homepage
Posted By: tessa1 Change download directory? - 30/12/09 09:02 AM
Instead of going into options and changing download directory is it possible to have a script that does that for one?

Ex:

If i type "/pic1" then the download directory changes to "C:\pics\summer 2009"

If i type "/pic2" then the download directory changes to "C:\pics\funny"


Can this be done? Been searching but i can't find a command for that.. Thanks.

Edit: Not searching how to match the file and download to a directory but rather for a command that will let me change it the way i described.
Posted By: XperTeeZ Re: Change download directory? - 30/12/09 10:36 AM
You can change directory via mIRC.ini
However, mIRC.ini overwrites itself on client EXIT so you would need a script that would set up new DCC folder during START UP. Here's the script:

Code:
alias pic1 {
writeini mirc.ini extensions n0 defaultEXTDIR:$+(",C:\pics\summer 2009,")
set %x.dcc.folder $+(",C:\pics\summer 2009,")
}

alias pic2 {
writeini mirc.ini extensions n0 defaultEXTDIR:$+(",C:\pics\funny,")
set %x.dcc.folder $+(",C:\pics\funny,")
}

on *:START: writeini mirc.ini extension n0 defaultEXTDIR: $+ %x.dcc.folder


UNTESTED!
Posted By: tessa1 Re: Change download directory? - 30/12/09 01:34 PM
Thanks ! Will be trying it out right away.
© mIRC Discussion Forums