bat,PowerShell ,windows

Thumbnail of post image 020

バッチファイルpowershell -command "Get-Content output1.txt -Head 2 | Out-Host"powershell -command "Get-Content o ...

bat,PowerShell ,windows

Thumbnail of post image 000

バッチファイルpowershell -command "$i=1;$inputF ='output1.txt';$baseName = ::GetFileNameWithoutExtension($inputF); ...

bat,PowerShell ,windows

Thumbnail of post image 160

バッチファイルpowershell -command "Get-Content output1.txt -ReadCount 2 | %%{$_ -join ','} | Out-Host"aqbkcma ...

bat,PowerShell ,windows

Thumbnail of post image 086

Windows パソコンでペーストコマンドと同じようなことをします

バッチファイルpowershell -command "Get-Content output1.txt , output2.txt | Group-O ...

bat,windows

Thumbnail of post image 078

バッチファイル

1列目はそのまま1列目に表示し2列目を横に並べます

@echo offsetlocal enableDelayedExpansion:: ファイル名を指定set inputFile="ticker\tic ...

bat,PowerShell ,windows

Thumbnail of post image 064

バッチファイルpowershell -Command "Get-Content -Path 'output3.txt' -Encoding Default | ConvertFrom-Csv -Delimiter ...

bat,windows

Thumbnail of post image 166

項目を分解したり 指定した文字列を削除したり 新しい項目を追加したり 並び替えたり 項目を並び替えたりします

バッチファイルで今日の日付の項目を追加しています

数字部分のカンマを削除しています。

タ ...

bat,PowerShell ,windows

Thumbnail of post image 098

クリップボードの内容をテキストファイルにするpowershell -command "get-clipboard">225.txtテキストファイルの内容をクリップボードにコピーclip < file.txtp ...

bat,windows

Thumbnail of post image 063

バッチファイル@echo offset SKIP1=25set SKIP2=771set SPAN1=3del output.txtset N=0:::powershell -command "get-clipboard" ...

bat,windows

Thumbnail of post image 160

コマンドを実行したら次のコマンドを実行するコマンド1 & コマンド2 & コマンド3 & コマンド4コマンドの実行が成功したら次のコマンドを実行するコマンド1 && コマンド2コマンドの実行が失敗したら次のコマンドを実行するコマンド1 || ...