::::::::: PowerShell :::::::::
Friday, November 04, 2005
  /\/\o\/\/ on MSH (Monad): MSH directory watcher with popup-balloon
/\/\o\/\/ on MSH (Monad): MSH directory watcher with popup-balloon

Now, here is some short, but a very serious script written by /\/\o\/\/

The page basically deals with a script which monitors a directory(which is passed as an argument) for and displays this "Balloon" tip at icon tray when the watching directory has been changed.

If you simply copy and paste the code on that page, it won't work as expected by throwing an error. Ah, gosh, it was because path to an icon file for NotifyIcon object wasn't there(since /\/\o\/\/ had hardcoded it as "g:\monad\mow.ico".

And also if you copy the whole script including the comment, it will generate an error so make sure that you save the whole script either as a file + .msh or copy and paste excluding the comment to run...(hey, but don't forget about who the original author[/\/\o\/\/] of the script is...)


I have modified the code a bit for more events(deleted and created) and also added "Start Monitoring" & "Stop Monitoring" context menu for NotifyIcon($NI in /\/\o\/\/'s code) object.

For feeling a bit buzzed from beer, i will be posting the modified source later.
 
Comments: Post a Comment



<< Home
Let's get lazy with PowerShell!

Name:
Location: Flushing, NY, United States

Experimenting with a different format of blogs...

Links
ARCHIVES
10/01/2005 - 11/01/2005 / 11/01/2005 - 12/01/2005 / 12/01/2005 - 01/01/2006 / 01/01/2006 - 02/01/2006 / 02/01/2006 - 03/01/2006 / 03/01/2006 - 04/01/2006 / 04/01/2006 - 05/01/2006 / 05/01/2006 - 06/01/2006 / 06/01/2006 - 07/01/2006 / 07/01/2006 - 08/01/2006 / 08/01/2006 - 09/01/2006 / 10/01/2006 - 11/01/2006 / 11/01/2006 - 12/01/2006 /


Powered by Blogger