Search found 15218 matches

by jvierra
Tue Jun 28, 2022 6:22 pm
Forum: PowerShell GUIs
Topic: load table to datagrid column size
Replies: 1
Views: 175

Re: load table to datagrid column size

The "Columns" collection has all column objects. Just set the width property as needed or use the autosize property. Start here: https://www.sapien.com/blog/2020/09/08/powershell-studio-working-with-the-datagridview-control/ I also recommend reading the whole article carefully and doing al...
by jvierra
Wed Jun 22, 2022 9:01 pm
Forum: PowerShell
Topic: Creating Xtemp and Ytemp temporary folders
Replies: 1
Views: 413

Re: Creating Xtemp and Ytemp temporary folders

Unfortunately, technical forums are not places to ask for free code writing or consulting. You can find many coders on the Internet who will write code for you for a reasonable fee.

You can also access the resources and videos on this site that will help you learn how to write PowerShell code.
by jvierra
Fri Jun 17, 2022 9:32 am
Forum: PowerShell
Topic: Creating GUI
Topic: Creating GUI
Replies: 1
Views: 481

Re: Creating GUI

PowerShell cannot build Web forms. Your question is impossible to answer because you have not shown any code that does anything. It is necessary to learn at least the basics of PowerShell and Windows. With some basics you will find it easier to ask a question. I recommend two ways to get started lea...
by jvierra
Thu Jun 16, 2022 9:04 pm
Forum: PowerShell GUIs
Topic: Posting to Powershell Studio Forum Denied????
Replies: 5
Views: 1073

Re: Posting to Powershell Studio Forum Denied????

Here is a simple example:

Code: Select all

$FormEvent_Load={
$csv = Import-Csv d:\scripts\StateCity.csv
$datagridview1.DataSource = [System.Collections.ArrayList]$csv
}
by jvierra
Thu Jun 16, 2022 8:55 pm
Forum: PowerShell GUIs
Topic: Posting to Powershell Studio Forum Denied????
Replies: 5
Views: 1073

Re: Posting to Powershell Studio Forum Denied????

Where are the items. They have to be stored somewhere. Even a single column of items in a file can be loaded as a CSV by just giving a "-header" to the Import-Csv command.
by jvierra
Wed Jun 15, 2022 1:01 am
Forum: PowerShell GUIs
Topic: Listbox Displaymember: odd results
Replies: 3
Views: 147

Re: Listbox Displaymember: odd results

This is what is needed to convert an array into an iList collection.

$listbox.DataSource = [system.collections.arraylist]$items
by jvierra
Wed Jun 15, 2022 12:20 am
Forum: PowerShell GUIs
Topic: Searching files with last time modification date
Replies: 5
Views: 535

Re: Searching files with last time modification date

Without access to your computer there is no way for us to know what is wrong with the computer. You will need to do some debugging.

Unfortunately, you will have to spend time debugging both computers. If you think it is PSS, then post in customer support forum for PSS.
by jvierra
Mon Jun 13, 2022 3:40 am
Forum: PowerShell GUIs
Topic: Searching files with last time modification date
Replies: 5
Views: 535

Re: Searching files with last time modification date

It is not possible to understand what you are asking. What is it that doesn't work? How do you know it doesn't work? The code I posted is standard and works on all versions of PowerShell and Windows. Whether you put the number in a variable or not does not make any difference. DO NOT put quotes arou...
by jvierra
Thu Jun 09, 2022 8:06 pm
Forum: PowerShell GUIs
Topic: Searching files with last time modification date
Replies: 5
Views: 535

Re: Searching files with last time modification date

Why make it so hard. Just run this at a prompt to see how it works.

Code: Select all

Get-ChildItem -File -Path My-unc-path -Recurse -Force |
Where-Object {$_.LastWriteTime -lt [datetime]::Now.AddDays(-3650)} |
Out-GridView
Do not put quotes around numbers. Strings are not numbers.
by jvierra
Wed Jun 01, 2022 4:11 pm
Forum: PowerShell GUIs
Topic: PS7 package....More Files?
Replies: 6
Views: 564

Re: PS7 package....More Files?

You should be able to copy all of the DLLs just once. If the versions change then they will have to be recopied. You could just zip everything and unzip it on the target system. MSI will be required if you require versioning and an MSI will only update changed files. You will need to install the Pow...