Search notes:

System.IO.Path - ChangeExtension()

The method ChangeExtension() of the System.IO.Path class modifes a file name's extension.
The following PowerShell example useses ChangeExtension to rename all *.ps1 files in a directory to *.txt files:
foreach ($file in get-item *.ps1) {
   rename-item $file  ([System.IO.Path]::ChangeExtension($file, 'txt'))
}

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/Microsof...', 1738292412, '3.144.12.43', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/dot-net/namespaces-classes/System/IO/Path/ChangeExtension(37): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78