Powershell, Skriptování

List of folders/files/both at certain level

Syntax:
Get-ChildItemPlus [-Path] <string> [-Level] <integer> [-Type] <string>
 
Example 1:
Get-ChildItemPlus c:\temp 2 Folder
This command retrieves all of the folders in the c:\temp path till second level.
 
Example 2:
Get-ChildItemPlus c:\temp 3 Files
This command retrieves all of the files in the c:\temp path till third level.
 
Parameters:
- Path
Specifies a path to location
 
- Level
Specifies a depth to search - e.g. c:\windows\system32 is level 2
 
- Type
The type of object that Get-ChildItem returns: File, Folder, Both

Napsat komentář

*

*povinné položky - email nebude zobrazen