|
|
楼主 |
发表于 2021-3-16 23:44:39
|
显示全部楼层
回复 4# WHY
也不行,
F:\> owerShell "$a=Get-Childitem -path 'F:\sss' -Recurse; $b=get-Item 'F:\sss'; $a+$b | foreach-object { $_.LastWriteTime = Get-Date; $_.CreationTime = Get-Date }"
设置“LastWriteTime”时发生异常:“文件“F:\sss”正由另一进程使用,因此该进程无法访问此文件。”
所在位置 行:1 字符: 90
+ ... F:\sss'; $a+$b | foreach-object { $_.LastWriteTime = Get-Date; $_.Cre ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: ( [], SetValueInvocationException
+ FullyQualifiedErrorId : ExceptionWhenSetting
设置“CreationTime”时发生异常:“文件“F:\sss”正由另一进程使用,因此该进程无法访问此文件。”
所在位置 行:1 字符: 119
+ ... ch-object { $_.LastWriteTime = Get-Date; $_.CreationTime = Get-Date }
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], SetValueInvocationException
+ FullyQualifiedErrorId : ExceptionWhenSetting |
|