Skip to content

Commit

Permalink
PowerFileWatcher Documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Christophe CREMON committed Jul 6, 2012
1 parent cb4824b commit f04dd54
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions PowerFileWatcher/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Release Notes
PowerShell Module that monitors incoming files

Requirements :

PowerShell 2.0


USAGE

Three (3) mandatory parameters :
FileName : the file name expected to arrive
TimeOut : the maximum time, in seconds, allotted for the file to arrive
ChangeType : the change type expected [ Created | Deleted | Changed | Renamed ]

One (1) optional switch :
IncludeSubDirectories : if the file is expected to arrive in a subdirectory


EXAMPLES

Looking for a file named "test.txt" in the directory "c:\", timeout = 2 minutes
Start-FileWatcher -FileName "c:\test.txt" -TimeOut 120 -ChangeType "Created"

Looking for an xml file, in a directory created while arrival of the file, timeout = 5 minutes, root directory is "c:\"
Start-FileWatcher -FileName "c:\*.xml" -TimeOut 300 -ChangeType "Created" -IncludeSubDirectories

IF THE FILE HAS ARRIVED, IT WILL RETURN THE NAME OF THE FILE

0 comments on commit f04dd54

Please sign in to comment.