View previous topic :: View next topic |
Author |
Message |
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Sun Apr 11, 2021 11:46 pm Post subject: Powershell DSU |
|
|
$19.99 (feature work caused price increase)
Updated for localization encodings.
Input string may be multipline / complete powershell script. Returns console output when complete.
Code: | %%powershell = @powershell(9*8)
info %%powershell |
This would return 72.
@pipe() will return any associated errors. Usually returns true.
Description: |
|
Download |
Filename: |
powershell.dsu |
Filesize: |
1.12 KB |
Downloaded: |
431 Time(s) |
Last edited by cnodnarb on Mon Apr 19, 2021 4:00 am; edited 5 times in total |
|
Back to top |
|
|
GregLand Valued Contributor
Joined: 15 Jun 2004 Posts: 212 Location: FRANCE
|
Posted: Tue Apr 13, 2021 9:04 pm Post subject: |
|
|
Really excellent!
I would like to participate, because I think your work is excellent!
How would you like to receive the payment?
|
|
Back to top |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Wed Apr 14, 2021 10:47 pm Post subject: |
|
|
Please regard my PM
|
|
Back to top |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Wed Apr 14, 2021 11:01 pm Post subject: |
|
|
Oh yes, this I like.
Code: | #resource add,text, rancoh.psm1
#include powershell.dsu
list create,1
list loadfile,1,#rancoh.psm1
%%powershell = @powershell(@text(1))
exit |
|
|
Back to top |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Wed Apr 14, 2021 11:11 pm Post subject: |
|
|
Be aware, doesn't work with advanced powershell with @'
'@ references, like powershell with embedded c#, so pretty much all the dialogshell stuff.
I have a compiled module of dialogshell that does work, but it's compiled with another propietary software ~
Also you can call those from a file by using iex(get-content file | out-string) but you can't run the command inside of the file directly from @powershell, so saying it doesn't work isn't quite right, but it's quirky.
Also using import-module would work, etc. you just can't embed the string into the executable and call directly.
|
|
Back to top |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Thu Apr 15, 2021 1:21 am Post subject: |
|
|
Figured out the @ symbol 'problem'.
Code: | #resource add,text, rancoh.psm1
#include powershell.dsu
list create,1
list loadfile,1,#rancoh.psm1
list savefile,1,rancoh.psm1
%%powershell = @powershell(import-module .\rancoh.psm1)
exit
|
Within rancoh.psm1, add this line of code at line 1
Code: | remove-item .\rancoh.psm1 |
|
|
Back to top |
|
|
cnodnarb Professional Member
Joined: 11 Sep 2002 Posts: 762 Location: Rockeledge, GA
|
Posted: Mon Apr 19, 2021 3:34 am Post subject: |
|
|
New release
Support for accented languages.
Description: |
|
Download |
Filename: |
powershell.dsu |
Filesize: |
1.08 KB |
Downloaded: |
431 Time(s) |
|
|
Back to top |
|
|
|