---
title: "修改windows文件的修改时间"
author: "FZtree"
date: "2018-09-25T01:56:45Z"
tags: []
categories: ["操作系统"]
slug: "windows"
draft: false
lastmod: "2018-09-29T02:17:12Z"
id: 2431267
url: "https://fztree.iteye.com/blog/2431267"
---

```
ls

ls | foreach-object {echo $_.LastWriteTime}

ls | foreach-object {$_.LastWriteTime = $_.LastWriteTime.AddDays(1)}

ls | foreach-object {$_.LastWriteTime = '09/24/2018 17:13:36'}
```