mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2003
Posts: 12
A
Pikka bird
OP Offline
Pikka bird
A
Joined: Dec 2003
Posts: 12
//write global.txt Pie | echo -a $read(global.txt,n,1) | .remove global.txt

Enough said? smile

Last edited by aca20031; 28/04/07 07:31 PM.
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
'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.

Joined: Dec 2003
Posts: 12
A
Pikka bird
OP Offline
Pikka bird
A
Joined: Dec 2003
Posts: 12
I'm told it works without error on 6.16

Joined: Dec 2003
Posts: 12
A
Pikka bird
OP Offline
Pikka bird
A
Joined: Dec 2003
Posts: 12
Hixxy, then suggest this the added to the documentation, it's quote annoying.

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
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

Joined: Sep 2006
Posts: 59
R
Babel fish
Offline
Babel fish
R
Joined: Sep 2006
Posts: 59
As hixxy said you cant make files with these names on windows.

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

Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
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.


Link Copied to Clipboard