Search found 15217 matches

by jvierra
Wed Jun 22, 2022 9:01 pm
Forum: PowerShell
Topic: Creating Xtemp and Ytemp temporary folders
Replies: 1
Views: 291

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

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

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

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

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

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

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

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

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...
by jvierra
Tue May 24, 2022 2:26 am
Forum: PowerShell
Topic: SFC /Scannow Not Working
Replies: 5
Views: 506

Re: SFC /Scannow Not Working

I am running the exe with elevated permissions. I am not running the exe from within PowerShell Studio. I created a 32-bit exe and I am running it on my 64-bit Windows 10. Still not enough information to even venture a guess beyond what I posted above. Read the earlier posts and try the rest of the...