Check your c:\, if there is a file titled "program", with no extension, open it with notepad and you may find that it's the file you're looking for.
When writing to the file, surround the filename in quotes (") just to make sure that you're writing to the right place. Unless the file is placed in the mIRC folder, than /write <filename> should work without problems.