Search found 5 matches

Return

by jvierra
Mon Jul 13, 2015 5:09 pm
Jump to forum
Jump to topic

Re: DataGridView Saving and Printing

Same thing:
PowerShell Code
Double-click the code block to select all.
$datagridview1.Rows |
    select -expand DataBoundItem |
    Format-Table -Auto |
    Out-String |
    Out-File printfile.txt
by jvierra
Fri Oct 09, 2020 11:03 pm
Jump to forum
Jump to topic

Re: Disabled Button Color

Simple. Just set the backcolor property of the button or almost any other control.
by jvierra
Sun Nov 15, 2020 1:27 pm
Jump to forum
Jump to topic

Re: get-process returning one user when packaged

This should always work:

(Get-WmiObject Win32_Process -filter "Name = 'powershell.exe'").GetOwner().User
by jvierra
Sun Nov 15, 2020 5:57 pm
Jump to forum
Jump to topic

Re: get-process returning one user when packaged

I suspect that Get-Process should also work as it is built on top of the WMI class but the security restrictions on the Net Framework classes for the CmdLets may be rest6rticting this. When some CmdLet fails then direct access via WMI may help.
by jvierra
Wed Dec 16, 2020 6:26 am
Jump to forum
Jump to topic

Re: Dynamically adding a column to a CSV output file

A CSV cannot have a variable number of columns per row. You will need to determine the number of columns in advance. This is an exercise in data relations and would normally be done with two CSV files that would be joined on the relational key. To learn what a CSV is you can start with the following...