mIRC Home    About    Download    Register    News    Help

Print Thread
file path #187643
09/10/07 07:08 PM
09/10/07 07:08 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
pouncer  Offline OP
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.
Re: file path [Re: pouncer] #187645
09/10/07 07:16 PM
09/10/07 07:16 PM
Joined: Dec 2002
Posts: 2,010
R
RoCk Offline
Hoopy frood
RoCk  Offline
Hoopy frood
R

Joined: Dec 2002
Posts: 2,010
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.

Re: file path [Re: pouncer] #187648
09/10/07 07:30 PM
09/10/07 07:30 PM
Joined: Feb 2003
Posts: 3,432
Sweden/Borlänge
S
sparta Offline
Planetary brain
sparta  Offline
Planetary brain
S

Joined: Feb 2003
Posts: 3,432
Sweden/Borlänge
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,.) }
Re: file path [Re: RoCk] #187654
09/10/07 08:38 PM
09/10/07 08:38 PM
Joined: Sep 2005
Posts: 2,876
H
hixxy Offline
Hoopy frood
hixxy  Offline
Hoopy frood
H

Joined: Sep 2005
Posts: 2,876
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.

Re: file path [Re: hixxy] #187655
09/10/07 08:43 PM
09/10/07 08:43 PM
Joined: Dec 2002
Posts: 2,010
R
RoCk Offline
Hoopy frood
RoCk  Offline
Hoopy frood
R

Joined: Dec 2002
Posts: 2,010
True, I was just thinking of any commands that need a file, should've thought of that.