Search found 55 matches
- Tue Apr 13, 2021 5:16 am
- Forum: PowerShell
- Topic: Force PStudio EXE to run from specified location only
- Replies: 11
- Views: 11135
Re: Force PStudio EXE to run from specified location only
Thanks as always for the excellent info!
- Fri Apr 09, 2021 5:01 am
- Forum: PowerShell
- Topic: Force PStudio EXE to run from specified location only
- Replies: 11
- Views: 11135
Re: Force PStudio EXE to run from specified location only
That's really useful info, thanks very much for the advice.
- Fri Apr 09, 2021 12:35 am
- Forum: PowerShell
- Topic: Force PStudio EXE to run from specified location only
- Replies: 11
- Views: 11135
Re: Force PStudio EXE to run from specified location only
Alexander / Jvierra many thanks for your help! For anyone browsing this post, I was able to do what I wanted as follows: $drive = Get-PSDrive -Name (get-location).Drive.Name $root = if ($drive.DisplayRoot -ne $null) { $drive.DisplayRoot } else { $drive.Root } if($($root) -notlike "*MyUNCShare*&...
- Thu Apr 08, 2021 11:35 pm
- Forum: PowerShell
- Topic: Force PStudio EXE to run from specified location only
- Replies: 11
- Views: 11135
Re: Force PStudio EXE to run from specified location only
Jvierra thanks for your reply. I am referring to the .exe I build from PowerShell Studio. I share the .exe (Which is the compiled Windows Form App) to my users in different regions. They have access to the .exe on a network share say \\MyServer\MyShare$ This share may have different drive letters fo...
- Thu Apr 08, 2021 10:57 am
- Forum: PowerShell
- Topic: Force PStudio EXE to run from specified location only
- Replies: 11
- Views: 11135
Re: Force PStudio EXE to run from specified location only
Thanks. Ill look into how i can use that. Right now I can see that it shows a drive is mapped by not that my form is running from there.
- Thu Apr 08, 2021 12:06 am
- Forum: PowerShell
- Topic: Force PStudio EXE to run from specified location only
- Replies: 11
- Views: 11135
Force PStudio EXE to run from specified location only
I wish to stop my users from copying my Powershell Studio .exe from the network location where I update it, so I can control the version. To do this I would like to do a check when the .exe is launched that the present working directory is the network share where it should be. If it is not where it ...
- Wed Apr 07, 2021 6:28 am
- Forum: PowerShell GUIs
- Topic: Apply filter to all columns on a Data Table?
- Replies: 4
- Views: 1937
Re: Apply filter to all columns on a Data Table?
Got it working as above.
- Wed Apr 07, 2021 6:27 am
- Forum: PowerShell GUIs
- Topic: Apply filter to all columns on a Data Table?
- Replies: 4
- Views: 1937
Re: Apply filter to all columns on a Data Table?
$textboxfilter_textchanged={ $filter = $($textboxfilter.Text) FOREACH ($Column in $datagridviewmachines.Columns) { $RowFilter += "{0} Like '%{1}%' OR " -f $($Column.headertext), $Filter } # chop off trailing ' OR ' $RowFilter = $RowFilter -replace ".{4}$" $datagridviewmachines.Da...
- Wed Apr 07, 2021 5:53 am
- Forum: PowerShell GUIs
- Topic: Apply filter to all columns on a Data Table?
- Replies: 4
- Views: 1937
Re: Apply filter to all columns on a Data Table?
I am nearly there I think although my code doesn't seem to be grabbing the column name. Any ideas? $filter = $($textboxfilter.Text) FOREACH ($Column in $datagridviewmachines.Columns) { Write-Host $($column.columnname) $RowFilter += "{0} Like '%{1}%' OR " -f $($Column.ColumnName), $Filter }...
- Wed Apr 07, 2021 3:25 am
- Forum: PowerShell GUIs
- Topic: Apply filter to all columns on a Data Table?
- Replies: 4
- Views: 1937
Apply filter to all columns on a Data Table?
Hi All I have a datagridview which is populated by various functions when a user clicks a choice of buttons in my project. The results are converted to datatables before updating the datagridview. The columns of the datagridview will therefore be different depending on which query a user is running....