Mofi,
Seems like the trouble may have been that I was giving it a program type of DOS rather than Windows. Will continue to experiment.
Yesterday I found I could use the %sel% as shown in the excerpt from the ini file:
Tool Cmd0=""C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe" %sel%"
Tool Dir0="%p"
Tool Menu0="New Tool 1"
Bitmap Path0=""
Show DOS Window0=0
Capture0=1
Capture Mode0=2
WinProg0=0
SaveAllFiles0=0
Save Active File0=0
Replace Type0=0
This will be very useful as well.
Again, Thank you very much for your help and interest.
-Will
Fullerton, California
Hello Troy,
Yes, that does work!!! Yes, that is what I wanted.
Thank you very much for your help.
......................................................................................
Hello William,
Thank you for your response. What I was trying to demonstrate by using
the TYPE command is that the content of the active file IS passed
through PowerShell to the output window. The same should be true of any
other command involving PowerShell.
No one here is currently using PowerShell. If you're referring to a
PowerShell script (.psl) that you want to run please try the following:
COMMAND Tab
Menu Item Name: PowerShell
Command Line:
"C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe" -noexit "%f"
Working Directory: %p
OPTIONS Tab
Windows Program selected
OUTPUT Tab
Output to List Box selected
No Replace selected
Do NOT select Show DOS Box OR Capture Output
If you load a PowerShell script with the command line:
"C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe" -noexit "%f"
as referenced above, this should pass the contents of the active
file/script to PowerShell for execution and the "-noexit" should force
PowerShell to remain open after the script is executed. Is this what
you're looking for?
Thanks, Troy