Support Forums

Search found 10948 matches

by jvierra
Wed Jun 21, 2017 4:23 pm
Forum: Windows PowerShell
Topic: SLS context
Replies: 9
Views: 241

Re: SLS context

The file you are trying to read appears to be an INI file even if it does not have that extension. "config" files are usually XML.
by jvierra
Wed Jun 21, 2017 4:05 pm
Forum: PowerShell GUIs
Topic: TAB on matched string
Replies: 10
Views: 240

Re: TAB on matched string

You need to start a new question and state what you are actually coding and what issue you are not able to resolve.

Without some idea of what your code is trying to do this doesn't make much sense.
by jvierra
Wed Jun 21, 2017 3:40 pm
Forum: Windows PowerShell
Topic: SLS context
Replies: 9
Views: 241

Re: SLS context

It is an INI file. You can use INI file calls to extract anything.

Here is a module that can read a whole section by name:

Get-ProfileSection -iniFile $filename -Section info2
by jvierra
Wed Jun 21, 2017 11:28 am
Forum: PowerShell GUIs
Topic: Windows 10
Replies: 20
Views: 315

Re: Windows 10

v35678 wrote:Getting a cert and signing the script would work correct?


Work for what?
by jvierra
Wed Jun 21, 2017 3:30 am
Forum: PowerShell GUIs
Topic: How to open a filebrowser dialog?
Replies: 2
Views: 50

Re: How to open a filebrowser dialog?

Use either the OpenFileDialog or the SaveFileDialog. There is also a "Textbox - Browse for File" custom control set.
by jvierra
Wed Jun 21, 2017 3:23 am
Forum: PowerShell GUIs
Topic: Different script execution between GUI and Non-GUI
Replies: 3
Views: 73

Re: Different script execution between GUI and Non-GUI

Have you stepped through with the debugger to see where it is hanging?
How are you running it in the form? Is it a button or some other control or event?
by jvierra
Mon Jun 19, 2017 11:12 am
Forum: PowerShell GUIs
Topic: Different script execution between GUI and Non-GUI
Replies: 3
Views: 73

Re: Different script execution between GUI and Non-GUI

Can you post a sample of the code that fails?
by jvierra
Sat Jun 17, 2017 2:56 pm
Forum: Windows PowerShell
Topic: Creating mutiple tables from one
Replies: 5
Views: 304

Re: Creating mutiple tables from one

You could have figured this out. You were one step away.

Code: Select all

Get-Process |
Group-Object ProcessName |
ForEach-Object{
$name = $_.Name
$_.Group | Select-Object ProcessName, ID | Export-Csv $name.csv
}
by jvierra
Fri Jun 16, 2017 6:16 pm
Forum: Windows PowerShell
Topic: Creating mutiple tables from one
Replies: 5
Views: 304

Re: Creating mutiple tables from one

Import-Csv file.csv | select col1, col2

Basic PowerShell property selection will do this.'
by jvierra
Fri Jun 16, 2017 5:09 pm
Forum: Windows PowerShell
Topic: Creating mutiple tables from one
Replies: 5
Views: 304

Re: Creating mutiple tables from one

I don't think we can understand what you are asking.

Where is this table? PowerShell does not have tables. Perhaps you mean a CSV?

Go to advanced search