How php modifies file time attributes
This article mainly introduces php how to modify the file time attribute, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Modify file time attribute
When you try to hide your newly created file in a pile of files, in addition to creating a confusing file name, you also need to modify the modification date of the file.
/ / modify Set-ItemProperty-Path 2.txt LastWriteTime-Value "2020-11-01 12:12:12" / / access time modify Set-ItemProperty-Path 2.txt LastAccessTime-Value "2020-11-01 12:12:12" / / create time modify Set-ItemProperty-Path 2.txt CreationTime-Value "2020-11-01 12:12:12"
Use the command to get file properties
Get-ItemProperty-Path D:\ 1.dll | Format-list-Property *-Force
Modify the creation and modification time of all files in a folder
Powershell.exe-command "ls' upload\ *. * * | foreach-object {$_. LastWriteTime = Get-Date; $_. CreationTime = '2018-01-01 19001 0000'}" Thank you for reading this article carefully. I hope the article "how to modify the time properties of a file" shared by the editor will be helpful to you. At the same time, I hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!