【发布时间】:2015-05-27 13:13:02
【问题描述】:
我在网上找到的所有方法都是使用get-date.toString()将当前日期写入字符串
我要做的是从文件中读取CreationDate 和时间,并将其转换为目录名称的字符串。
如果我可以将CreationTime 的不同部分保存到单独的变量中就足够了。
例如:$Year、$Month、$Day、$Hour 等
我该怎么做呢?
【问题讨论】:
标签: windows powershell file-properties