bat,G'MIC,windows,画像

Thumbnail of post image 069

Windows でコマンドラインで命令を入れるとうまく解釈してくれず思い通りの動きをしてくれません

コマンドラインを確認する方法とうまく解釈してくれたコマンドを示します

-debug

うまくいかなかった例です。余 ...

bat,PowerShell ,windows

Thumbnail of post image 065

choiceコマンドを使って条件分岐でコマンドを実行できますが毎回の答えは大変です

バッチファイル

何かキーボードをしたらコマンドプロント 時間切れだとノートパッドを起動します

::powershell -Execut ...

bat,PowerShell ,windows

Thumbnail of post image 022

通常では bomがついて 出力されてしまいます

バージョンの確認$PSVersionTable新しいバージョンのパワーシェルPowerShellをインストール

Releases · PowerShell/PowerShell ...

bat,PowerShell ,windows

Thumbnail of post image 051

バッチファイルpowershell -command "(Get-Content .\hello.txt) | %%{ $_ -replace 'hello','konbanwa'} | set-c ...

bat,PowerShell ,windows

Thumbnail of post image 111

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

bat,PowerShell ,windows

Thumbnail of post image 027

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

bat,PowerShell ,windows

Thumbnail of post image 051

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

bat,PowerShell ,windows

Thumbnail of post image 032

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

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

bat,windows

Thumbnail of post image 131

バッチファイル

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

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

bat,PowerShell ,windows

Thumbnail of post image 103

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