script for power shell command

Discuss and share scripts and script files...
Post Reply
ghorbat1
Posts: 2
Joined: 15 Dec 2022 12:17

script for power shell command

Post by ghorbat1 »

hi please help me for change script power shel to xyplorer

I would change get-date -format ($culture.DateTimeFormat.LongDatePattern) to get modified file


thanks


$cultures = [globalization.cultureinfo]::GetCultures(“allCultures”) |

where-object {$_.name -match ‘^fa’}

foreach ($c in $cultures)

{

$culture = New-Object system.globalization.cultureinfo($c)

$date = get-date -format ($culture.DateTimeFormat.LongDatePattern)

New-Object psobject -Property @{“name”=$culture.displayname; “date”=$date}

}

Post Reply