powershell >> Powershell OLE Automation?

by aUFjdGl2ZVNjcmlwdCAmIEMjIGlzc3Vl » Wed, 16 Apr 2008 15:11:01 GMT

Using IActiveScriptSite and CcmdTarget we can write our own script engine

for parsing VBscript code.
like wise How we can write powershell script parsing engine
using VC++ automation or other technology?
(Active Scripting based on OLE Automation)



powershell >> Powershell OLE Automation?

by Marco Shaw [MVP] » Wed, 16 Apr 2008 19:36:53 GMT





I'm not the most experience programmer, but I am know that there isn't a
COM/OLE interface to PowerShell.

I believe C++ requires a wrapper to access PowerShell's .NET assemblies
(written in C#).

I would like to understand how that works a bit better though...

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com



powershell >> Powershell OLE Automation?

by Lionel Fourquaux » Wed, 16 Apr 2008 20:10:57 GMT


Powershell OLE Automation?

by Roman Kuzmin » Wed, 16 Apr 2008 20:29:01 GMT

It is not quite clear what exactly you want to accomplish. Could you please
clarify and\or provide a use case example?

Perhaps you are interested in implementing your own PowerShell host. Then
yes, it is possible, but it has nothing to do with COM. You may find some
examples here:
http://msdn2.microsoft.com/en-us/library/ms714661 (VS.85).aspx

--
Thanks,
Roman Kuzmin

http://code.google.com/p/farnet/
PowerShell and .NET in FAR Manager




RE: Powershell OLE Automation?

by QWxleCBSaWVkZWw » Mon, 12 May 2008 03:47:00 GMT

PrimalScript 2007 now includes a component called ActiveXPosh.
It is a PowerShell host with a COM interface. Maybe that is what you are
looking for.

Alexander Riedel
SAPIEN Technologies, Inc.






Similar Threads

1. Does IE open word document by OLE automation or DDE - Internet Explorer(IE)

2. ole automation

Yes it's possible. You'll need to use the fullscreen
property, and then you can specify the size and location
to make it not full screen.

RayO


"Fred Jacobowitz" < XXXX@XXXXX.COM > wrote in message
news: XXXX@XXXXX.COM ...
> From excel I am using automation to start an instance of Internet Explorer
> 6.
>    dim web as object
>    Set web = CreateObject("InternetExplorer.Application")
>    web.Visible = True
>    web.Navigate "www.microsoft.com"
> Is there a way to launch IE without the Min, Max,Close buttons?
>
> Thanks Fred J
>
>


3. IE6 install hangs on OLE Automation

4. OLE automation

 	Every time I boot I get a pop-up window asking "Do you want to install
Microsoft OLE automation?" There are two option: yes and no. If I select yes
it starts to install. Then I'm told there are newer files existing, do I want
to overwrite existing files? A yes answer and it continues, a no answer it
stops.
If I select no the pop-up window goes away and booting completes.
No matter what I do the next time I boot I get the same damn pop-up
window with the same question.
How do I get rid of this annoying window? I have XP MCE, Service Pack 3.
I'm not positive but I think this started when I installed SP3.

5. OLE Automation / Multiple dispatch

6. Excel OLE automation

I don't find how to solve my problem.......

wxAutomationObject *objExcel=new wxAutomationObject;
wxVariant appo;
if ( objExcel->CreateInstance("Excel.Application") )
{
appo=objExcel->PutProperty("visible", true);

appo=objExcel->CallMethod("Workbooks.Add");
//OK appo=objExcel->PutProperty("ActiveCell.Value", "value !!!");
//OK appo=objExcel->PutProperty("ActiveCell.Font.Bold", true);
}

In this way I open excel application and I add a workbook. I can write in
tha active cell (A1 for default) but I don't succeed to move into the
other cell or into the second sheet.

7. problem ole automation

8. ole automation problem

hi
i have a problem to translate this function vb in c++ with wxwidgets and 
mingw i dont know how to enter in collection can we help me

------
Dim entry As AcadLayer
     Dim layerNames As String
     layerNames = ""
     For Each entry In ThisDrawing.Layers
        layerNames = layerNames & entry.name & ", "
     Next
     MsgBox "The drawing consists of the following layers:" & vbCr & 
layerNames, , "Delete Example"
     Return
-------
i try this
  wxAutomationObject AutoCAD;
  AutoCAD.CreateInstance("AutoCAD.Application.16");
  wxMessageBox (AutoCAD.GetProperty 
("ActiveDocument.Layers.Count"),"number of layers");
  // Grrrrrrr
  wxMessageBox (_T(AutoCAD.CallMethod("ActiveDocument.Layers.Item", TTC 
,".Name")), "Name Of Layers");

i can retrived a number of layer but no a name in a collection

thank