计算按完整路径来算
英文符号算1个
列表文件名___list.txt编码ansi(gbk)- #/&cls&pause&powershell -c "type -literalpath '%~f0'|out-string|iex"&pause&exit
-
- $themax=140
-
- cmd /c cd.>___list.txt
- (gci -r) |?{
- $l=0
- $_.fullname.tochararray().foreach({
- if([int]$_ -gt 127){$l+=3}else{$l+=1}
- })
- if($l -gt $themax){1}else{0}
- } |%{$_.fullname
- } |sc ___list.txt
复制代码
|