mIRC Home    About    Download    Register    News    Help

Print Thread
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

Joined: Mar 2003
Posts: 1,271
L
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
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:

Joined: Mar 2004
Posts: 8
A
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?

Joined: Aug 2003
Posts: 1,831
I
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_

Joined: Dec 2002
Posts: 5,411
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,411
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.

Joined: Nov 2003
Posts: 2,327
T
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
Joined: Aug 2003
Posts: 1,831
I
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.

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


Link Copied to Clipboard