Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Add-Type -AssemblyName System.Windows.Forms
- Function Show_Reminder{
- [System.Windows.Forms.MessageBox]::Show($Reminder,'1st Reminder','OK','warning')
- }
- $runasAlias = [Environment]::UserName
- $Reminder = Get-Content "C:\Users\$($runasAlias)\RemindMe\Memory\Reminder1.txt"
- [DateTime]$Time = Get-Content "C:\Users\$($runasAlias)\RemindMe\Memory\Time1.txt"
- [DateTime]$Date = Get-Date
- [DateTime]$DateTime = $Date.ToString("yyyy-MM-dd hh:mm")
- Start-Sleep (($Time) - ($DateTime)).TotalSeconds
- Show_Reminder
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement