Page 1 of 1

Q: Is it possible to execute a console command somehow?

Posted: 07 May 2008 19:43
by Walrez
I mean, an internal cmd command, like copy, dir, echo, etc?

Re: Q: Is it possible to execute a console command somehow?

Posted: 07 May 2008 21:04
by admin
Walrez wrote:I mean, an internal cmd command, like copy, dir, echo, etc?
This will do "DIR C:" in the console box:
::open "cmd" /k dir c:\

cmd.exe switches (there are more...):
/c Carries out the command and then terminates
/k Carries out the command but remains

More elegant would be to add a new scripting command "cmd" and have:
cmd command, [remain=1]
::cmd "dir c:"

Posted: 08 May 2008 09:59
by Walrez
Thanks, I used it for the "FTP panel" script that I just posted.