Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > any "directory change notification" command line tools?

Reply
Thread Tools Display Modes

any "directory change notification" command line tools?

 
 
Tomasz Chmielewski
Guest
Posts: n/a

 
      04-05-2009
I'm looking for a tool which will monitor changes in a given directory
(i.e. new file creation).

When a new file is created in the directory, I would like to run my own
script (obviously, with the name of the file as one of its parameters).

Tool has to be able to work from command line (i.e. be usable without
interaction, in a script).


I think I'm looking for a tool supporting "directory change
notification", for which I found some info on MSDN[1], but it is very
low level info requiring programming.


If someone is familiar with Linux - it has a subsystem called "inotify";
if I used "inotifywait" program to trace changes to /tmp/1/ directory
and created "some_file" file, I would see such output:

/tmp/1/ CREATE some_file
/tmp/1/ OPEN some_file
/tmp/1/ MODIFY some_file
/tmp/1/ MODIFY some_file
/tmp/1/ MODIFY some_file
/tmp/1/ CLOSE_WRITE,CLOSE some_file


Is anyone familiar with a similar tool which could be used with Windows
2003?


[1] http://msdn.microsoft.com/en-us/libr...61(VS.85).aspx

--
Tomasz Chmielewski
http://wpkg.org
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
DTM "INF Syntax Test" and INFGate.exe... how does '/N' command line switch work? gbarteck Windows Vista Drivers 1 05-15-2007 06:45 AM
Make a "Disk Initialize" with command line Jacques MARCHAL Scripting 1 02-04-2007 08:25 PM
Re: win2k3 server - "reactivate disk" through command line T. Uranjek Windows Server 1 10-19-2006 07:22 AM
export subnets from "Sites and Services" using command line tools thomas Active Directory 3 01-26-2005 12:09 AM
"Account is locked out" command-line tools TheBatchMan Active Directory 2 12-26-2003 03:47 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59