Skip to content

Simple PowerShell script for popup notifications creation in Windows

Notifications You must be signed in to change notification settings

AlsaAsksMiley/notify-me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Simple PowerShell script which produces notifications.

Usage (in PowerShell):

Notify-Me [[-M] 'Text'][[-T] 'Title'][[-S] Timeout][[-I] 'Type'][-D]

or simply

Notify-Me -H

System Requirements

  • Microsoft .NET Framework 3 and above
  • At least RemoteSigned execution policy must be set
  • It's highly recommended to put script into easy accessible location, which is in PATH

Installation

No need to install — just download it and put in preferred location.

Options

Option Description
-M Notification message
-T Notification title
-S Time in milliseconds for notification to be shown. Default is 10000 ms. Will affect only if no actions were made in last 1-2 minutes.
-I Icon type. Available types are 'None', 'Info', 'Warning', 'Error'
-D Output some debug data and show notification.
-H Show help

Examples

Assuming Notify-Me is accessible from PATH locations:
ffmpeg ... ; $? | Notify-Me -M $("{0}" -f $(if($?){"Success!"}else{"Failure!"}))
Show notification with text "Success!" or "Failure!" depending on FFmpeg exit code.
robocopy .\backup .\share\backup /S ; Notify-Me -T Robocopy "Finished copying"
Show notification with text "Finished copying" after robocopy exits.

About

Simple PowerShell script for popup notifications creation in Windows

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published