2023年10月17日
摘要: $Res_Path = "d:\temp\" $Time = Get-Date -UFormat "%Y%m%d%H%M" $ComputerName = $env:computername $IP = ((gwmi win32_networkadapterconfiguration | ? {$_ 阅读全文
posted @ 2023-10-17 17:12 momingliu11 阅读(13) 评论(0) 推荐(0) 编辑
摘要: #子目录按年月日命令,对每个月的子目录进行打包 y='2023' #定义年份 for m in {01..12};do #定义01到12月 ym="$y$m" echo $ym if ls $ym* &> /dev/null;then #检查月份文件夹是否存在 echo "$ym* exists,s 阅读全文
posted @ 2023-10-17 10:56 momingliu11 阅读(5) 评论(0) 推荐(0) 编辑