get-childitem
How can Get-ChildItem be tested for no results (zero files)?
I\'m stumped here on what seems to be a simple problem; so sorry for any bone-headed-ness over here. I have script that cleans up defunct backup files.After identifying the files I loop over and prin[详细]
2023-03-23 18:45 分类:问答Combine the results of two distinct Get-ChildItem calls into single variable to do the same processing on them
I\'m trying to write a PowerShell script开发者_运维百科 to build a list of files, from several directories. After all directories have been added to the main list, I\'d like to do the same processing[详细]
2023-02-05 13:58 分类:问答Is there a Powershell Get-Childitem timeout property?
I am trying to use the GCI cmdlet to get information on many remote computers, some of which are sometimes turned off or unresponsive. Is there a way I can specify a timeout property for get-childitem[详细]
2023-02-05 00:11 分类:问答Powershell: Why does (gci c:\ddd).count on an Empty folder not return 0
Why does (gci c:\\ddd).count on an Empty folder not return 0 but \"nothing\" I just get an Error \"You cannot call a method on a null-valued expression.\" When my count-condition does 开发者_如何学Py[详细]
2023-01-28 22:23 分类:问答How to write a list sorted lexicographically in a grid listed by column?
I have the result of Get-ChildItem, and I want to iterate over these, and display their names. By default if I simply use Write-Host then I get it listed out along the row like this:[详细]
2023-01-24 05:03 分类:问答How to write a PowerShell function to get directories?
Using PowerShell I can get the directories with the following command: Get-ChildItem -Path $path -Include \"obj\" -Recurse | `[详细]
2023-01-07 12:07 分类:问答Powershell, ftp, get-childitem
Little new to powershell.I am trying to locate a get-childitem like command that will work on an ftp site.[详细]
2022-12-31 17:36 分类:问答Copy files where lastwritetime -ge 3/26/2010 9:00pm with Powershell
I need to copy files in one directory to another directory where the lastwritetime is greater than or equal to 3/26/2010 9:00pm. 开发者_如何学Go I\'m using:[详细]
2022-12-26 23:49 分类:问答Does using undef as hash values save any memory in Perl?
A Perl idiom for removing duplicate values from an array: @uniq = keys %{{map{$_=>1}@list}} Is it cheaper to use this version:[详细]
2022-12-17 07:02 分类:问答