Powershellを沢山した。
2021年2月22日 日常使ったコマンド一覧。
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "Start-Process PowerShell.exe -Verb runas"
Get-ChildItem *.txt
Get-ChildItem *.txt | Out-GridView
Copy-Item E:fTXT23.txt E:fTXT3
Get-ChildItem *.txt| Select-Object Name
Get-ChildItem *.txt -Name
dir *.txt -Name
copy E:fTXT28.txt E:fTXT3
dir *.txt | ForEach-Object {$_.FullName}
dir -Recurse | ForEach-Object {$_.FullName}
dir | ForEach-Object {$_.FullName}
dir -Depth 2 | ForEach-Object {$_.FullName}
dir *.txt | ForEach-Object {$_.FullName}
dir *.txt -Depth 2 | ForEach-Object {$_.FullName}
dir *.txt -Recurse | ForEach-Object {$_.FullName}
Get-ChildItem -Recurse * | ? { $_.PSIsContainer } | % { $_.FullName }
Get-ChildItem -Recurse * | ? { $_.PSIsContainer }
Get-ChildItem * | Where-Object { ! $_.PSIsContainer }
Get-ChildItem -Recurse * | ? { ! $_.PSIsContainer } | % { $_.FullName }
Get-ChildItem -r * | ? { ! $_.PSIsContainer } | % { $_.FullName }
Get-ChildItem -Path "E:fdog_pic" -Recurse | Where-Object{$_.Length -gt 100KB } | Sort-Object length -Descending
Get-ChildItem -Path "E:fdog_pic" -Recurse | Where-Object{$_.Length -gt 100KB }| Sort-Object length -Descending | Out-GridView
Get-ChildItem -Path "E:fdog_pic" -Recurse | Where-Object{$_.Length -gt 100KB }| Sort-Object length -Descending > add_one.txt
Get-ChildItem -Path "E:fdog_pic" -Recurse | Where-Object{$_.Length -gt 100KB }| Sort-Object length -Descending | ForEach-Object {$_.FullName}
Get-ChildItem -Path "E:fdog_pic" -Recurse | ForEach-Object {$_.FullName} | Where-Object{$_.Length -gt 100KB }| Sort-Object length -Descending
Get-ChildItem "E:fdog_pic" -recurse -force | Where-Object{$_.Length -gt 100KB } | Select-Object Fullname,Length | Sort-Object Length -descending )
Get-ChildItem "E:fdog_pic" -recurse -force | Where-Object{$_.Length -gt 100KB } | Select-Object Fullname,Length | Sort-Object Length -descending
Get-ChildItem "E:fdog_pic" -recurse -force | Where-Object{$_.Length -gt 100KB } | Select-Object Fullname,Length | Sort-Object Length -descending | Out-GridView
うーん、沢山やった。
ググって大体解決したんだがね。
当初の予定より、大分進んだ感じ。
使ったコマンドは、ローカルに保存されるので、
後から見れる。
晩飯食った。
回鍋肉、ポテサラ。
キムチ。
コーヒータイム。
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "Start-Process PowerShell.exe -Verb runas"
Get-ChildItem *.txt
Get-ChildItem *.txt | Out-GridView
Copy-Item E:fTXT23.txt E:fTXT3
Get-ChildItem *.txt| Select-Object Name
Get-ChildItem *.txt -Name
dir *.txt -Name
copy E:fTXT28.txt E:fTXT3
dir *.txt | ForEach-Object {$_.FullName}
dir -Recurse | ForEach-Object {$_.FullName}
dir | ForEach-Object {$_.FullName}
dir -Depth 2 | ForEach-Object {$_.FullName}
dir *.txt | ForEach-Object {$_.FullName}
dir *.txt -Depth 2 | ForEach-Object {$_.FullName}
dir *.txt -Recurse | ForEach-Object {$_.FullName}
Get-ChildItem -Recurse * | ? { $_.PSIsContainer } | % { $_.FullName }
Get-ChildItem -Recurse * | ? { $_.PSIsContainer }
Get-ChildItem * | Where-Object { ! $_.PSIsContainer }
Get-ChildItem -Recurse * | ? { ! $_.PSIsContainer } | % { $_.FullName }
Get-ChildItem -r * | ? { ! $_.PSIsContainer } | % { $_.FullName }
Get-ChildItem -Path "E:fdog_pic" -Recurse | Where-Object{$_.Length -gt 100KB } | Sort-Object length -Descending
Get-ChildItem -Path "E:fdog_pic" -Recurse | Where-Object{$_.Length -gt 100KB }| Sort-Object length -Descending | Out-GridView
Get-ChildItem -Path "E:fdog_pic" -Recurse | Where-Object{$_.Length -gt 100KB }| Sort-Object length -Descending > add_one.txt
Get-ChildItem -Path "E:fdog_pic" -Recurse | Where-Object{$_.Length -gt 100KB }| Sort-Object length -Descending | ForEach-Object {$_.FullName}
Get-ChildItem -Path "E:fdog_pic" -Recurse | ForEach-Object {$_.FullName} | Where-Object{$_.Length -gt 100KB }| Sort-Object length -Descending
Get-ChildItem "E:fdog_pic" -recurse -force | Where-Object{$_.Length -gt 100KB } | Select-Object Fullname,Length | Sort-Object Length -descending )
Get-ChildItem "E:fdog_pic" -recurse -force | Where-Object{$_.Length -gt 100KB } | Select-Object Fullname,Length | Sort-Object Length -descending
Get-ChildItem "E:fdog_pic" -recurse -force | Where-Object{$_.Length -gt 100KB } | Select-Object Fullname,Length | Sort-Object Length -descending | Out-GridView
うーん、沢山やった。
ググって大体解決したんだがね。
当初の予定より、大分進んだ感じ。
使ったコマンドは、ローカルに保存されるので、
後から見れる。
晩飯食った。
回鍋肉、ポテサラ。
キムチ。
コーヒータイム。
- スポット情報
コメント