Digitální fotografie

Sunrise

30.06.2012 05:06
Canon EOS 500D, Canon EF 100mm f/2.8 L IS USM, clona 8, čas 1/250s, ISO 100, stativ

 

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

Powershell, Skriptování, Windows

Changing file or folder date

It will change creation time of fileName.txt

It will change values $TimeType of all files in $Folder

It will change values $TimeSettings of all files in $Folder using Hash Table