mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
if i have something like

alias myulistfile return Aop/ulist.txt

it works fine for me, so can someone just please clarify what exactly the "Aop/ulist.txt" quotes does?

my script directory has a space in it as well, still everything is ok

Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
If you only ever refer to it as Aop/ulist.txt then you don't need the quotes, however if you were to do something like $+($mircdir, Aop/ulist.txt) then you will because of course there could always be a space in $mircdir (or $scriptdir, or any other non-hardcoded pathname).


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
I'm guessing you're poking the difference between a Relative path, and an Absolute path.

With mIRC, so long as the path you pass one of the tools ($readini(), /write, etc. etc.) doesn't have a space in it, it should work, even if the parent path has spaces in it.

If the path you pass to one of the tools has a space in it somewhere, then you should quote it (with $qt() or some other manual method). It also doesn't hurt to quote non-space paths.

So, here's a hyperthetical situation for you.

mIRC is installed in 'C:\My Appz\mIRC'. You have a few subdirectories under it, such as 'Logz' and 'Downloaded filez'.

No spaces in the path passed to the command.
/write Logz\file.txt string

This would fail.
/write Downloaded filez\file.txt string
There's a space in the path, so you need to quote it.
/write "Downloaded filez\file.txt" string

This would fail.
//write $mircdirLogz\file.txt string
Spaces in the full path.
//write $qt($mircdirLogz\file.txt) string

Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
thank you very much guys, you have made it very clear for me now


Link Copied to Clipboard