Support Forums

Search found 10932 matches

by jvierra
Thu Jun 22, 2017 7:50 am
Forum: PowerShell GUIs
Topic: Export Multiple Textboxes to CSV
Replies: 2
Views: 8

Re: Export Multiple Textboxes to CSV

Don't use a CSV. Use a DataTable and you can easily edit, remove or add rows. (CRUD). You can also add columns. This can then be exported to a csv in one line.
by jvierra
Wed Jun 21, 2017 6:20 pm
Forum: Windows PowerShell
Topic: SLS context
Replies: 7
Views: 42

Re: SLS context

Just detect the string in each line and output everything after it. [

if($found){$line}
if($line -match 'info2'){$found = $true}
by jvierra
Wed Jun 21, 2017 4:41 pm
Forum: Windows PowerShell
Topic: SLS context
Replies: 7
Views: 42

Re: SLS context

The easiest way is to use CliXML.

Help Export-CliXml -full
by jvierra
Wed Jun 21, 2017 4:23 pm
Forum: Windows PowerShell
Topic: SLS context
Replies: 7
Views: 42

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: 197

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: 7
Views: 42

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: 18
Views: 227

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: 31

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: 56

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?

Go to advanced search