mIRC Home    About    Download    Register    News    Help

Print Thread
* /write: unable to open file #79025 12/04/04 06:25 PM
Joined: Apr 2004
Posts: 10
B
BaFe Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Apr 2004
Posts: 10
When i try to use /write command with filenames like "shadow.type" or "prn.type" it returns unable to open file - error. There are no such files, so no read-only possibillity. Also with /write C:\[censored]\shadow.blaa returns the error message.
I dont know if there are others than "shadow" or "prn" that brings the error, but those I've noticed...
Same appears to be with all my friends using mIRC 6.14, so what the heck? crazy

Re: * /write: unable to open file #79026 14/04/04 03:27 PM
Joined: Mar 2003
Posts: 1,271
L
LocutusofBorg Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
Make sure there are no spaces in the filepath. Also, mIRC cannot /write to a file in a directory that doesn't exist. If the directory does exist but the file doesn't, /write will work and create the file, but if the directory doesn't exist either you get that error. If your directorypath contains spaces, mIRC will pick that up as a non existant directory...

/write c:\program files\text.txt stuff

In this case, mIRC will attempt to write the phrase files\text.txt stuff to the file called c:\program. While in this case there won't be a problem, similar things happen when spaces appear in the directory path.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Re: * /write: unable to open file #79027 14/04/04 08:24 PM
Joined: Apr 2004
Posts: 10
B
BaFe Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Apr 2004
Posts: 10
Thx for reply, but the same error appears also with only /write shadow.ini blaa so no matter if the folder does'nt exist or i forget the "-apostrophe. Try it your own to create a shadow.txt file to anywhere with /write command (mirc6.14) so i really think this is a bug. :tongue:

Re: * /write: unable to open file #79028 15/04/04 06:29 AM
Joined: Mar 2004
Posts: 8
A
ADubb Offline
Nutrimatic drinks dispenser
Offline
Nutrimatic drinks dispenser
A
Joined: Mar 2004
Posts: 8
yup, i got the same error, but only on shadow.[any extension]

weird eh?

Re: * /write: unable to open file #79029 19/04/04 10:54 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
This is a problem with several filenames. (I don't know why.)
//echo -a $mkfn(shadow) $mkfn(ip) $mkfn(global)
shadow_ ip_ global_

Re: * /write: unable to open file #79030 25/04/04 01:54 PM
Joined: Dec 2002
Posts: 4,563
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,563
That is correct, some filenames may be classified as device names by the Windows system you are using. If so, mIRC checks that and prevents you from writing to those device names to prevent system errors, freezes, etc.

Re: * /write: unable to open file #79031 25/04/04 02:26 PM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
i take it that is why it cant write to NUL.txt


New username: hixxy
Re: * /write: unable to open file #79032 26/04/04 11:38 AM
Joined: Aug 2003
Posts: 1,831
I
Iori Offline
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
In the case of names such as "prn" or "con" that may be true, but each of those filenames that I mentioned are valid in other programs and Windows itself. :tongue:
In fact some are only blocked by mIRC in Windows NT and not in 9x.

Re: * /write: unable to open file #79033 28/04/04 09:16 PM
Joined: Apr 2004
Posts: 10
B
BaFe Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Apr 2004
Posts: 10
Thx for the $mkfn that'll help me a lot smile