跳至主要內容
傻瓜的日記
  • 關於

PowerShell

Move指定字串的Folder到另一個指定Folder

2019-06-28 由 Tim Ng

$year = 19

get-childitem -path D:\backup | foreach-object {
new-item -path D:\backup2\20″$year”\$_\ -itemtype directory -force
move-item D:\backup\$_\???d”$year”???? D:\backup2\20″$year”\$_\ -force
}

分類 PowerShell 發表留言

列出所有指定目錄下的指定格式檔案數量/容量bytes

2019-06-26 由 Tim Ng

get-childitem -path D:\backup\ -recurse -filter “???d17????.zip” | measure length -s

Count : 221
Average :
Sum : 1206169876
Maximum :
Minimum :
Property : Length

分類 PowerShell 發表留言

分類

  • Active Directory
  • Cisco
  • Elastix
  • Exchange
  • Hauwei
  • Linux
  • MSSQL
  • MySQL
  • Netscreen
  • Network
  • Palo Alto
  • PowerShell
  • Raspberry
  • SonicWall
  • Sophos XG Firewall
  • Veeam
  • VMWare
  • Windows
  • Zimbra
  • 未分類

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

近期文章

  • vCenter 6.7 join domain
  • Bind9 DDNS
  • Veeam B&R restore Physical SQL cluster server to ESXi for UAT environment
  • Windows Cluster without quorum
  • Orange Pi Zero AV cable tvout

近期留言

  • 「Tim Ng」在〈Zimbra Free Edition 8.5 and Disclaimer〉發佈留言
  • 「pdifeo」在〈Zimbra Free Edition 8.5 and Disclaimer〉發佈留言

彙整

  • 2020 年 12 月
  • 2020 年 11 月
  • 2020 年 10 月
  • 2020 年 9 月
  • 2020 年 8 月
  • 2020 年 7 月
  • 2020 年 6 月
  • 2020 年 5 月
  • 2020 年 4 月
  • 2020 年 3 月
  • 2020 年 2 月
  • 2020 年 1 月
  • 2019 年 12 月
  • 2019 年 11 月
  • 2019 年 10 月
  • 2019 年 6 月
  • 2019 年 2 月
  • 2019 年 1 月
  • 2018 年 12 月
  • 2018 年 11 月
  • 2018 年 9 月
  • 2018 年 8 月
  • 2018 年 4 月
  • 2018 年 3 月
  • 2018 年 2 月
  • 2018 年 1 月
  • 2017 年 9 月
  • 2017 年 8 月
  • 2017 年 6 月
  • 2017 年 3 月
  • 2016 年 11 月
  • 2016 年 9 月
  • 2016 年 8 月
  • 2016 年 5 月
  • 2016 年 4 月
  • 2016 年 3 月
  • 2015 年 11 月
  • 2015 年 10 月
  • 2015 年 9 月
  • 2015 年 8 月
  • 2015 年 6 月
  • 2015 年 5 月
  • 2015 年 4 月
  • 2015 年 3 月
  • 2014 年 12 月
  • 2014 年 11 月
© 2021 傻瓜的日記 • Built with GeneratePress