mIRC Home    About    Download    Register    News    Help

Print Thread
#187643 09/10/07 07:08 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
alias userfile return system\userlist.ini

works perfectly fine, but whats the stuff about using "" in filepaths?

Last edited by pouncer; 09/10/07 07:08 PM.
pouncer #187645 09/10/07 07:16 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
In case of spaces in the path, it (the path) would need to be quoted.

~ Edit ~

Quotes are usually needed when using commands dealing with paths and/or file names with spaces .. /run /splay /play /write /writeini etc.

pouncer #187648 09/10/07 07:30 PM
Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
you can use " $+ path $+ " or you can use $qt(path) . just wanted to point that out wink


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
RoCk #187654 09/10/07 08:38 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Actually things like /run and /splay that take the last parameter as a filename don't need quotes. Quotes are only needed to surround filepaths that are somewhere in the middle of the expected parameters, eg. /write and /writeini. When it's the last parameter there's no ambiguity about where the filename ends so they're not needed.

hixxy #187655 09/10/07 08:43 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
True, I was just thinking of any commands that need a file, should've thought of that.


Link Copied to Clipboard