By installing mIRC has portable, your intentions are that everything is stored in one folder (like on a USB drive) instead of multiple folders. As a result mIRC will make the ‘program files folder’ not only the folder for the exe but for the scripts/logs/popups as well. And since you need ‘Administrator permissions’ to read/write to anything in the program files folder, it causes problems.
This has nothing to do with mIRC and everything to do with windows 7 (and I believe windows Vista as well). mIRC does not has file read or write permission to files in the program files (and the program files x86) for security reasons, which is why by default everything gets saved to the Users folder.
Make sure that $mircdir points to "C:\Users\<Your Name>\AppData\Roaming\mIRC\" instead of "C:\Program Files (x86)\"
If you insist on trying to run mIRC portable from program files, one way workaround (which I HIGHLY discourage) is to run mIRC.exe “As Administrator”, doing so will let mIRC read/write to anything it wishes. (By no means you should EVER do this because it lets mIRC read/write to anything...)
Edited by Wiz126 (03/04/10 05:50 AM)