我正在尝试
在每个WE * .MS目录中创建一个CD_TMP文件
通过处理AHD * .TPL和ADT * .TPL文件设置内容
当只有一个WE.20150408.MS目录时,脚本运行正常 但是当有多个目录(即WE.20150408.MS,WE.20151416.MS,WE.20140902.MS)时,它不起作用并给出错误信息:
@"^@[A-Z]{6}(?:01[\dA-F]{6}|02[\dA-F]|(?:(?!0[12])\d){2})[A-Z]{3}$"
SCRIPT:
Get-Content: An object at specified path AHD*TPL does not exist of has been filtered by the -Include or -Exclude parameter.
At C:\Temp\Script\Script.ps1:24 Char:14
+ $content = Get=Content -path $AHD
+ CatagoryInfo :ObjectNotFound: (System.String[]:Strint[1) [Get-Content], Exception
+ FullyQualifiedErrorID: ItemNotFound,Micorsoft.Powershell.Commands.GetContentCommand