taljacob2 / edit-date-of-file

A script that edits the: "last modified date", "creation date" and "last access date" of a file or a folder.
MIT License
0 stars 0 forks source link

edit-date-of-file

A PowerShell script that edits the:

of a file or a folder.

Usage

The following commands should be run with powershell.exe.

Execute Inline Without Cloning

Syntax:

& ([scriptblock]::Create((iwr https://raw.githubusercontent.com/taljacob2/edit-date-of-file/master/edit-date-of-file.ps1 -useb))) -Path <String> [-NewDate (<DateTime>)] [-Recursive | -Rec | -R]

Examples:

Execute Offline

Clone The Project

git clone https://github.com/taljacob2/edit-date-of-file

Run

.\edit-date-of-file.ps1 -Path <String> [-NewDate (<DateTime>)] [-Recursive | -Rec | -R]

In case you encouter an error, try running with:

powershell.exe -NoLogo -ExecutionPolicy Bypass -Command ".\edit-date-of-file.ps1 -Path <String> [-NewDate (<DateTime>)] [-Recursive | -Rec | -R]"

Help

To view the full documentation of the script, run:

Get-Help .\edit-date-of-file.ps1 -Full