Changing file creation and modification dates using Powershell in Windows. Open powershell (c:\Windows\system32\Windowspowershell\v1.0\powershell.exe) Change to directory containing files needing modification using (chdir) command and issue the following commands for each file that you’re needing to change: $(Get-Item ‘file-name-including-extenstion’).creationtime=$(Get-Date “mm/dd/yyyy hh:mm:ss pm”) $(Get-Item ‘file-name-including-extenstion’).lastwritetime=$(Get-Date “mm/dd/yyyy hh:mm:ss pm”) And if neccessary, change last access time: $(Get-Item ‘file-name-including-extenstion’).lastaccesstime=$(Get-Date… Continue reading Changing File Creation & Modification Dates with Powershell in Windows
Tag: Command Line
How to Configure Sendmail to Relay Through Gmail on Debian Linux 10 (Buster)
This is a guide is for installing, setting up, and configuring sendmail to relay messages through Gmail or a Google Apps account. Upon successful completion you’ll be able to send email from your bash scripts, hosted website, or from the command line using the mail command. You can also use this for sending notifications of… Continue reading How to Configure Sendmail to Relay Through Gmail on Debian Linux 10 (Buster)