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

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Windows/...', 1738293790, '3.145.166.178', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Windows/PowerShell/examples/index(64): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78