
PowerShell
- 91 ответ
- 0 вопросов
59
Вклад в тег
Received: from mail-ua1-f41.google.com (mail-ua1-f41.google.com [209.85.222.41])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by xxx.xxx.ru (Postfix) with ESMTPS id 537297EC5E
for <xxx@xxx.ru>; Fri, 15 May 2020 11:58:38 +0300 (MSK)
Received: by mail-ua1-f41.google.com with SMTP id c17so510696uaq.13
for <xxx@xxx.ru>; Fri, 15 May 2020 01:58:38 -0700 (PDT)
1..100 | foreach-Object {
Move-Item "Path/To/File/$($_)file.log" -Destination "Path/To/Folder/$($_)folder"
}
@for /L %%a IN (1,1,100) do @echo move "source/dir/%%afile.log" "dest/dir/%%afolder"
[PSCustomObject]
иCompare-Object
[PSCustomObject]$hastable
#...
# вместо # $stammArtikelWebseite += $newRoW
$stammArtikelWebseite += [PSCustomObject]$newRoW
# ...
# то что в $Import - уже объекты, их можно менять на месте
# или также из вашего хеша сделать
# вместо # $stammArtikelcsv += $newRow1
$stammArtikelcsv += [PSCistomObject]$newRow1
#...
# А потом:
Compare-Object -ReferenceObject $stammArtikelWebseite -DifferenceObject $stammArtikelcsv -Property preisohne
Get-NetAdapter
g++ test.cpp -o test 2>&1 | Tee-Object -Filepath error.txt
invoke-command { 'txt1'; write-error 'err'; 'txt2' } -ErrorVariable e
#пример вызова внешней команды
invoke-command { python 1.py 2>&1 } -ErrorVariable e
$e | Out-File error.txt