mIRC Homepage
Posted By: aca20031 /write issues with file names - 28/04/07 07:31 PM
//write global.txt Pie | echo -a $read(global.txt,n,1) | .remove global.txt

Enough said? smile
Posted By: hixxy Re: /write issues with file names - 28/04/07 07:40 PM
'global', 'ip', 'prn', 'con', 'shadow', and various others are recognised as names of windows devices by mIRC and they'll not be written to for that reason.
Posted By: aca20031 Re: /write issues with file names - 28/04/07 07:40 PM
I'm told it works without error on 6.16
Posted By: aca20031 Re: /write issues with file names - 28/04/07 07:41 PM
Hixxy, then suggest this the added to the documentation, it's quote annoying.
Posted By: maroon Re: /write issues with file names - 28/04/07 08:17 PM
This is also mentioned in the recent thread: https://forums.mirc.com/ubbthreads.php?ubb=showflat&Number=174607

Sat also has a utility at http://www.xise.nl/mirc/devices.zip that shows which device names are blocked. mIRC has no way of knowing which device names will put you in a world of hurt if written to, so it plays it safe and avoids writing to them.

Perhaps a better solution is to change the error from

* /write: unable to open file

to

* /write: unable to open reserved filename
Posted By: Rewtor Re: /write issues with file names - 30/04/07 01:23 PM
As hixxy said you cant make files with these names on windows.

Go on try calling a folder 'con' it will not work.
Posted By: maroon Re: /write issues with file names - 30/04/07 01:36 PM
Originally Posted By: Rewtor
As hixxy said you cant make files with these names on windows.

Go on try calling a folder 'con' it will not work.


My point was that some you can, and some you can't - mIRC creates an error message when trying to create folders named IP, GLOBAL, SHADOW, etc - but it does create them. It won't read from IP.TXT GLOBAL.TXT SHADOW.TXT, but Win Explorer CAN create them. However, there's enough of a minefield out there that mIRC plays it safe and stays away from all reserved names.
© mIRC Discussion Forums