-
Notifications
You must be signed in to change notification settings - Fork 337
Open
Description
# 毒鸡汤
function jitang {
$dir =(get-item $profile).Directoryname
$line = Get-Random -Maximum (Get-Content -Path "$dir\data.txt" | Measure-Object).count
$msg = (Get-Content -Path "$dir\data.txt" -TotalCount $line)[-1]
Write-Output ('{0} {1}'-f (Get-Date -Format "yyyy-MM-dd HH:mm:ss"),$msg)
}data.txt就是那个数据文件了,没行一条鸡汤就可以了。
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels