Powershell 出现“数组尺寸超出支持范围”错误,文件大小接近 1GB
下面是一个简单的 Powershell 脚本示例: $dpath = "D:\Fill" $mask="000000" $sizefile = 1GB $numfiles = 10 #file mask will be "file_000000 " = 12 chars total $fillsize = [int]($sizefile/12) For ($fnum=0; $fnum -lt $numfiles; $fnum++) { # mask filename $fname="$mask$fnum" $fnamelen=$...