Know how, yes.. Have a script already, doubt it.
I believe that the script would require the usage of sockets, and therefore a specific address.
Please note that mIRC's file transfer options are not the best for this, as you will not obtain the maximum transfer rates.
IMO, you'd be better off using a FTP program and sending the file(s) when necessary.