WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Cmdlets

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Out-Gridview

 Keywords: GetAssemblies Get-Member Out-Gridview Grid Get Assemblies from Powershell Pipeline Gridview BeginInvoke EndInvoke appdomain currentdomain

;/////////////////////////////////////////////////////////////////////////////////////////////////////////
;Winbatch 2013A - Get Assemblies from Powershell pipeline
;                 Modified for Gridview
;
;Stan Littlefield, May 6, 2013
;/////////////////////////////////////////////////////////////////////////////////////////////////////////
cFile = "C:\temp\assemblies.txt"
If FileExist(cFile) Then FileDelete(cFile)
ObjectClrOption("use", "System.Management.Automation,version=1.0.0.0,publicKeyToken=31bf3856ad364e35,culture=neutral")
objAutoPs = ObjectClrNew("System.Management.Automation.PowerShell") 
oPshell = objAutoPs.Create()
oScope = ObjectType("BOOL",@TRUE)
oPshell.AddScript('[appdomain]::currentdomain.GetAssemblies() | Get-Member | Out-Gridview',oScope)
objAsync = oPshell.BeginInvoke() 
oPShell.EndInvoke(objAsync)      

WinWaitExist("~Out-Gridview", 60)
If WinExist("~Out-Gridview")
   WinActivate("~Out-Gridview")
   While  WinExist("~Out-Gridview")
      TimeDelay(1)
   Endwhile
Endif

oPshell.Dispose()
oPshell=0

Exit




Article ID:   W17831
Filename:   Out-Gridview.txt
File Created: 2013:05:07:07:19:36
Last Updated: 2013:05:07:07:19:36