mIRC Home    About    Download    Register    News    Help

Print Thread
/run #239030 17/09/12 09:57 PM
Joined: Jun 2003
Posts: 81
T
TRT Offline OP
Babel fish
OP Offline
Babel fish
T
Joined: Jun 2003
Posts: 81
Code:
/run a a
* /run: unable to open file 'aa'


The space following a single char always gets stripped.

Re: /run [Re: TRT] #239131 24/09/12 02:20 PM
Joined: Dec 2011
Posts: 22
P
ParadoxDragon Offline
Ameglian cow
Offline
Ameglian cow
P
Joined: Dec 2011
Posts: 22
Use quotes
Code:
//run $qt(a a)
/run "a a"

Re: /run [Re: TRT] #239133 24/09/12 03:33 PM
Joined: Dec 2002
Posts: 4,753
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,753
Thanks this issue has been fixed for the next version.

Re: /run [Re: Khaled] #239468 30/10/12 10:49 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
It looks like it's no longer possible to launch programs with parameters using /run, perhaps related to this fix?

Re: /run [Re: Collective] #239471 30/10/12 01:30 PM
Joined: Oct 2012
Posts: 164
D
Deega Offline
Vogon poet
Offline
Vogon poet
D
Joined: Oct 2012
Posts: 164
These both work fine.
/run "cmd" /k dir
/run cmd.exe /k dir.

Re: /run [Re: Deega] #239472 30/10/12 01:57 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Interesting, thanks. It looks like the only syntax that fails is this:

/run cmd /k dir

which worked fine in previous versions.

Re: /run [Re: Collective] #239476 30/10/12 05:01 PM
Joined: Dec 2002
Posts: 4,753
Khaled Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 4,753
If the formatting is ambiguous, eg. uses a path, command and parameters that contain spaces, the /run command has to guess which is which and split the line accordingly. The recent fix seems to have resulted in a stricter parsing method. I will see if I can revert this while maintaining the current fix.