mIRC Home    About    Download    Register    News    Help

Print Thread
#48492 10/09/03 03:10 PM
Joined: Jun 2003
Posts: 47
J
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jun 2003
Posts: 47
kode aliases:
/titlo .play -cstTITLEBAR $mircdirfiles\titlebar.txt 100
this return an error if directory of mirc is: c:\NeRvIeN n\
$mircdir return only c:\mirc
error: * /play: unable to open 'C:\joao\NeRvIeN' (line 288, aliases.ini)


but $mircdir in a echo command return: c:\NeRvIeN n\

i think that this is an error
:tongue:

#48493 10/09/03 03:38 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Encase your play filename in quotes. Mircdir works i believe, but the alias doesnt see the rest of the filename. Atleast thats what Im guessing.


-KingTomato
#48494 10/09/03 03:41 PM
Joined: Jun 2003
Posts: 242
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Jun 2003
Posts: 242
Actually you could just use:
Code:
/titlo .play -cstTITLEBAR files\titlebar.txt 100

#48495 10/09/03 03:46 PM
Joined: Jun 2003
Posts: 47
J
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jun 2003
Posts: 47
what i'm trying to say is that
if mirc path is: C:\mirc m\mirc.exe
and you have one file in c:\mirc m\files\a.txt
and play this txt using $mircdirfiles\a.txt
$mirdir returns olny c:\mirc\ and in totali return: c:\mirc\files\a.txt
and an error is gereted
because the full path is c:\mirc m\files\a.txt

#48496 10/09/03 06:44 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
just an fyi, if its native to the mirc directory, there is no need to give a "home" directory. I.E. if you have C:\mirc\myfile.txt, in mire youu may refer to it as "myfile.txt"


-KingTomato
#48497 10/09/03 07:48 PM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
The problem you describe applies to ALL filepaths in scripts - spaces screw it up unless you encase in double quotes as suggested. The space apparantly denotes a end-of-string.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius

Link Copied to Clipboard