July 29, 2009 at 2:33 am #7502
noespam
Member
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.