Search notes:

PowerShell examples

Access the Registry
Creating a Message Box
Writing into a notepad window with SendMessage()
Setting the speed of the Mouse

Find files that are newer than n days

The following pipeline finds files that are newer than 4 days, measured by last write time.
get-childItem -path m:\path\to\dir -attributes !directory -recurse |
  where-object {$_.lastWriteTime -gt (get-date).addDays(-4)} |
  select-object fullName
In cmd.exe, a similar thing is possible with forfiles.exe.

Rename extensions of files

The following pipeline changes files with a .jpg extension to a file with a .jpeg extension in the current directory:
foreach ($file in gci *.jpg) { mv $file "$($file.basename).jpeg" }

See also

PowerShell

Index