mIRC Home    About    Download    Register    News    Help

Print Thread
#217079 30/12/09 09:02 AM
Joined: Jan 2008
Posts: 13
T
tessa1 Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jan 2008
Posts: 13
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.

Last edited by tessa1; 30/12/09 09:35 AM.
Joined: Nov 2009
Posts: 20
X
Ameglian cow
Offline
Ameglian cow
X
Joined: Nov 2009
Posts: 20
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!

Joined: Jan 2008
Posts: 13
T
tessa1 Offline OP
Pikka bird
OP Offline
Pikka bird
T
Joined: Jan 2008
Posts: 13
Thanks ! Will be trying it out right away.


Link Copied to Clipboard