mIRC Home    About    Download    Register    News    Help

Print Thread
best way to use file paths #209505 16/02/09 02:10 PM
Joined: Oct 2005
Posts: 827
P
pouncer Offline OP
Hoopy frood
OP Offline
Hoopy frood
P
Joined: Oct 2005
Posts: 827
$qt($mircdirdlls/mdx.dll)

is this the best way to avoid problems and errors?

Re: best way to use file paths [Re: pouncer] #209509 16/02/09 04:24 PM
Joined: Sep 2005
Posts: 2,878
H
hixxy Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,878
Yes. All /commands need you to quote filepaths if there's a space in them.

Re: best way to use file paths [Re: pouncer] #209513 16/02/09 05:28 PM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Additionally, the quoted path will work even if there was no space(s) in the path or filename.

Another alternative, that is possible in the future, but not at the moment, is to have Khaled make directory and filename identifiers include the quotes by default.

Re: best way to use file paths [Re: pouncer] #209550 17/02/09 01:11 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
Well, ok it's a trick question.

The best way is to put mirc.ini in your root directory.

Other than that, yes, quotes are good for reasons mentioned.

Re: best way to use file paths [Re: DJ_Sol] #209553 17/02/09 02:25 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
Quote:
The best way is to put mirc.ini in your root directory.

Best way to do what?


Spelling mistakes, grammatical errors, and stupid comments are intentional.
Re: best way to use file paths [Re: starbucks_mafia] #209558 17/02/09 06:54 PM
Joined: Jan 2007
Posts: 1,156
D
DJ_Sol Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
You know what I meant. Best way to not worry about file paths.

Re: best way to use file paths [Re: DJ_Sol] #209559 17/02/09 07:15 PM
Joined: Dec 2002
Posts: 2,962
S
starbucks_mafia Offline
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
I don't know what you mean. How does having mIRC save data to the installation directory make anything easier? You still have to use $mircdir and $scriptdir correctly and you still have to quote paths with spaces.


Spelling mistakes, grammatical errors, and stupid comments are intentional.