Comments on: Touching a File with PowerShell https://www.chinhdo.com/20080625/powershell-touch-file/ Chinh's semi-random thoughts on software development, gadgets, and other things. Wed, 08 Jan 2014 16:30:32 +0000 hourly 1 https://wordpress.org/?v=6.9.4 By: POWERSHELL TIP: How to touch a file. | John Perry https://www.chinhdo.com/20080625/powershell-touch-file/comment-page-1/#comment-360850 Wed, 08 Jan 2014 16:30:32 +0000 https://www.chinhdo.com/20080625/powershell-touch-file/#comment-360850 […] Chinh DoTouching a File with PowerShell […]

]]>
By: Chinh Do https://www.chinhdo.com/20080625/powershell-touch-file/comment-page-1/#comment-92920 Thu, 26 May 2011 12:47:18 +0000 https://www.chinhdo.com/20080625/powershell-touch-file/#comment-92920 Thanks for the tip, D. If we go with the standard definition of “touch” – to change the file modification time to the current time – then your version is definitely shorter. When I was doing this, I had a need to use a specific time.

]]>
By: D https://www.chinhdo.com/20080625/powershell-touch-file/comment-page-1/#comment-92916 Thu, 26 May 2011 10:56:14 +0000 https://www.chinhdo.com/20080625/powershell-touch-file/#comment-92916 (ls testFile.txt).LastWriteTime = Get-Date

]]>