Changing File Creation & Modification Dates with Powershell in Windows

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 "mm/dd/yyyy hh:mm:ss pm")

How To Know If You Have True Friends

If you want to know who your true friends are, act financially broke.

Now before anyone gets their feelings hurt, I know a lot of people go through difficult times, which may coexist with tough times another is experiencing. I’m not pointing fingers or judging. I’m saying I’ve learned some things over the years.

If you want to experiment with this idea without having to actually fall on hard times, I suggest you subtly start dropping hints by mentioning things like the following and see how your treated. You’ll need to keep it up for at least month or two.

I’ll go if you don’t mind catching my tab. My debit card is in the negative right now.

Sorry guys, I can’t go out. I’m conserving funds so I can pay my bills this month.

Has anyone else’s work been drying up lately?

Damn, this is the longest I’ve gone without getting paid.

My work has cut back on my hours. I wonder if I’m still considered full-time.

I really need to sell some stuff. Anyone in the market for a decent watch?

I’m on a ramen noodle diet.

Hey, can I connect my phone to your wifi? I need to check my email.

One thing I know is the quality of a person’s character is far more desirable than all other defining attributes.

William McGill