SearchAndReplace-HexPatternInBinaryFile
как будто всегда возвращает массив, HandleFoundPatternsIndexes -patterns $patterns -foundPatternsIndexes $foundPatternsIndexes
function test([int[]]$p) { write-host $p.getType() $p.Count $p }
test @()
System.Int32[] 0
test 1,2,4
System.Int32[] 3 1 2 4
test $null
param(
[string]$Patterns
)
$realPatterns = $Patterns -split ' '
...
If lpApplicationName is NULL, the first white space–delimited token of the command line specifies the module name. If you are using a long file name that contains a space, use quoted strings to indicate where the file name ends and the arguments begin
FilePath: >D:\test folder\with test file\myfile.exe<
Patterns: >11223344/55667788<
---
PS C:\Windows\system32>
Тоже, думал в эту сторону. Но опций у ffmpeg не нашел таких.
ForEach-Object { $_.MainWindowTitle } | Where-Object { $_ -ne "" }; $windows.Count
Where-Object { $_.MainWindowTitle }; $windows.Count
... -ErrorAction SilentlyContinue | Where-Object { $_.MainWindowTitle } | Measure-Object
$_ -ne ""
{ $_ }
оставитьвот всякие манипуляции с датами и строками это гораздо удобнее
become: yesили всё же как-то по другому ?
become_user: root
pip config list -v
?
почему
А не просто
+=,$ драматически снижает читабельность
==>