mIRC Home    About    Download    Register    News    Help

Print Thread
#19208 14/04/03 04:35 PM
Joined: Dec 2002
Posts: 109
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Dec 2002
Posts: 109
There seems to be a limit to the length of filename of a file /splay will accept. The error is simply that it 'cant play c:\............' but shortening the file length fixes this. Why does /splay not support the maximum filelength that a filesystem can accept?

T
theRat
theRat
T
what?
Could you give us a GOOD example how to reproduce the suspected bug?

Joined: Dec 2002
Posts: 109
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Dec 2002
Posts: 109
well, /splay -m filename ..

eg.
/splay -m "C:\Documents and Settings\Tom\My Documents\Scores\Andromeda Soundtrack\Andromeda - 02 - High Guard Theme (Season 2 Main Title).mid"

produces:
* /splay: unable to play 'C:\Documents and Settings\Tom\My Documents\Scores\Andromeda Soundtrack\Andromeda - 02 - High Guard Theme (Season 2 Main Title).mid'

Rename the file, and use:
/splay -m "C:\Documents and Settings\Tom\My Documents\Scores\Andromeda Soundtrack\Andromeda - 02 - High Guard Theme.mid"

and it's fine. So it's a filename length problem.
Through futher testing, I have worked out that the maximum length /splay works with is 55 characters.

Is this a mIRC bug, or a problem with the windows filesystems in general?

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
I'm not quite sure whether it is a bug, but you could use $shortfn() to shorten the length of the file. This will give DOS format of the file extension (C:\Docume~1\Tom\...)

Joined: Dec 2002
Posts: 109
T
Vogon poet
OP Offline
Vogon poet
T
Joined: Dec 2002
Posts: 109
Yea, could do.
Still, gotta wonder.

Joined: Dec 2002
Posts: 1,518
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,518
id sus[pect the ( ) in the file name as whats giving u that error..... altho its just a guess on my part .......

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
I thought about that too, d3m0n, but its not being sent parameters like a returning alias (the "$blah()" type).. Maybe it could though..


Link Copied to Clipboard