mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2013
Posts: 14
M
MarkyO Offline OP
Pikka bird
OP Offline
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.

Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
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
Joined: Feb 2011
Posts: 448
K
Pan-dimensional mouse
Offline
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()


Joined: Jun 2013
Posts: 14
M
MarkyO Offline OP
Pikka bird
OP Offline
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.

Link Copied to Clipboard