July 29, 2009 at 3:08 am #7503
Yutaka Emura
Keymaster
noespam wrote:
Yutaka wrote:
For instance, if you want to show the current directory:
`- cmd
DIR ${Dir}
`If you don’t want to parse parameters like ${}, you can use
‘!- filename
stdin
stdin
…
`works :) Here’s an example for those of you who use powershell.
`- powershell –
# prompts for name then echos the hello greeting
$name = “${name}”.ToUpper()
“Hello $name!”
exit
`Note the exit is required. Powershell would not exit automatically. What about an option to chop the last CRLF? Most of the time I want to replace the trigger inline instead of adding a new line. The above code always adds a new line.
I will consider adding that option. Please let me know if you have any specific specification in mind for this option. Thanks!