mIRC Home    About    Download    Register    News    Help

Print Thread
#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.

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

TRT #239133 24/09/12 03:33 PM
Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
Thanks this issue has been fixed for the next version.

Khaled #239468 30/10/12 10:49 AM
Joined: Dec 2002
Posts: 3,138
C
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?

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

Deega #239472 30/10/12 01:57 PM
Joined: Dec 2002
Posts: 3,138
C
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.

Collective #239476 30/10/12 05:01 PM
Joined: Dec 2002
Posts: 5,420
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 5,420
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.


Link Copied to Clipboard