5i365 (我心飞扬)当前离线
上尉
C:\Users\Administrator\Desktop\Test0\DEF\A C:\Users\Administrator\Desktop\Test0\DEF\B C:\Users\Administrator\Desktop\Test0\DEF\1.txt C:\Users\Administrator\Desktop\Test0\DEF\2.txt
评分人数
idwma 当前离线
少校
$s=$s -split "\r?\n"for($i=0;$i -lt $s.length;$i++){ if(!(gv a 2>$null)){ for($j=0;$j -lt $s[$i+1].length;$j++){ if(($s[$i][0..$j] -join '') -ne ($s[$i+1][0..$j] -join '')){$a=$s[$i][0..($j-1)] -join '';break} } } if($s[$i+1] -notmatch [regex]::Escape($a)){$a;rv a}}COPY
TOP
$s = @'C:\Users\Administrator\helloC:\Users\Administrator\hello\BC:\Users\Administrator\hello\C\a.batC:\Users\Administrator\hello\B\1.txtC:\Users\Administrator\Desktop\Test0\DEF\AC:\Users\Administrator\Desktop\Test0\DEF\BC:\Users\Administrator\Desktop\Test0\DEF\1.txtC:\Users\Administrator\Desktop\Test0\DEF\2.txt'@$s = $s -split "\r?\n"for ($i = 0; $i -lt $s.length; $i++){ if (!(gv a 2>$null)) { $a = split-path $s[$i] } if ($s[$i + 1] -notmatch [regex]::Escape($a)) { $a + '\'; rv a }}COPY
$s=$s -split "\r?\n"for($i=0;$i -lt $s.length;$i++){if(!(gv a 2>$null)){$a=split-path $s[$i]}if($s[$i+1] -notmatch [regex]::Escape($a)){$a+'\';rv a}}COPY
$s = @'C:\Users\Administrator\hello\AC:\Users\Administrator\hello\BC:\Users\Administrator\hello\B\1.txtC:\Users\Administrator\Desktop\Test0\DEF\AC:\Users\Administrator\Desktop\Test0\DEF\BC:\Users\Administrator\Desktop\Test0\DEF\1.txtC:\Users\Administrator\Desktop\Test0\DEF\2.txt'@ $s -split "\r?\n" |foreach { Split-Path $_} | sort-object | Get-UniqueCOPY
$s = @'C:\Users\Administrator\hello\AC:\Users\Administrator\hello\BC:\Users\Administrator\hello\B\1.txtC:\Users\Administrator\Desktop\Test0\DEF\AC:\Users\Administrator\Desktop\Test0\DEF\BC:\Users\Administrator\Desktop\Test0\DEF\1.txtC:\Users\Administrator\Desktop\Test0\DEF\2.txt'@ $s -split "\r?\n" |foreach { Split-Path $_}COPY