I had problems with it unless I specified the file as c:\mirc\cmd.txt in both places. The script insisted on putting the file into my user directory, but looking for it in my mIRC directory.