Home
About
Download
Register
News
Help
Register
Log In
Forums
Bug Reports
$script and spaces in account names
Forums
Active Threads
Search
Who's Online
Help
Print Thread
$script and spaces in account names
#
242498
22/07/13
12:42 AM
Joined:
Jun 2013
Posts: 14
M
MarkyO
OP
Pikka bird
OP
MarkyO
Pikka bird
M
Joined:
Jun 2013
Posts: 14
So I have a script that unloads existing and old versions of a script and uses $script() to unload.
A person said they were having trouble installing and I asked for errors and all they had was Count not find c:\users\chris
and that was it.
So I asked him to give me the actual path and there was a space. I tried it and it always happens.
TLDR:
unload [flags] $script(x)
where $script(x) contains a space in the file path will result in an error.
Copy Link to Clipboard
Re: $script and spaces in account names
MarkyO
#
242499
22/07/13
12:48 AM
Joined:
Jul 2006
Posts: 4,145
France
W
Wims
Hoopy frood
Wims
Hoopy frood
W
Joined:
Jul 2006
Posts: 4,145
France
That's not a bug, when you are using commands, parameters are tokenize by spaces, you need to add quotes around the complete filename for mIRC to understand:
unload -rs $qt($script(x))
#mircscripting @
irc.swiftirc.net
== the best mIRC help channel
Copy Link to Clipboard
Re: $script and spaces in account names
MarkyO
#
242500
22/07/13
12:51 AM
Joined:
Feb 2011
Posts: 448
K
KindOne
Pan-dimensional mouse
KindOne
Pan-dimensional mouse
K
Joined:
Feb 2011
Posts: 448
You should use $qt() since you can be dealing with spaces in file names.
/help $qt()
Copy Link to Clipboard
Re: $script and spaces in account names
KindOne
#
242501
22/07/13
02:44 AM
Joined:
Jun 2013
Posts: 14
M
MarkyO
OP
Pikka bird
OP
MarkyO
Pikka bird
M
Joined:
Jun 2013
Posts: 14
Originally Posted By: KindOne
You should use $qt() since you can be dealing with spaces in file names.
/help $qt()
Thanks.
p.s. I hate your avatar.
Last edited by MarkyO;
22/07/13
02:44 AM
.
Copy Link to Clipboard
Hop To
News and Discussions ------
Latest News
General Discussion
Support ------
mIRC Help
Connection Issues
Scripts & Popups
Development ------
Feature Suggestions
Developers
Bug Reports
Print Thread
Switch to Threaded Mode
Show Likes
Link Copied to Clipboard
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
View Profile
Private Message
Follow User
Forum Posts
Forum Rules
·
Mark All Read
Contact Us
·
Help
·
mIRC Homepage