mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
Hi.

I know how to open notepad etc. using /run program.exe
but I was wondering, let's say I want to open cmd:
/run cmd.exe
which is fine, but I wanted to add more commands, like, dir
I mean, like:
/run cmd.exe dir
which ofcourse doesn't work, cause I guess i'm missing some variables, I hope I explained this clearly.

Thanks.

Joined: Sep 2007
Posts: 202
F
Fjord artisan
Offline
Fjord artisan
F
Joined: Sep 2007
Posts: 202
make a bat file and use /run to run it

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Or use e.g. /run cmd.exe /k dir

/k will keep the cmd window open after executing the command, while /c would close it right after

Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
Originally Posted By: Horstl
Or use e.g. /run cmd.exe /k dir

/k will keep the cmd window open after executing the command, while /c would close it right after


Exactly what I was looking for, thank you so much, and by the way, where would I find a list of variables to use?

Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Hm, I found some basic info e.g. here - which is basically:
/run cmd /k cmd /?

Joined: Oct 2005
Posts: 98
S
Babel fish
OP Offline
Babel fish
S
Joined: Oct 2005
Posts: 98
Thanks again for the help.


Link Copied to Clipboard