From f04dd546b0c3c10b27e598bb22157d8ac248e3c9 Mon Sep 17 00:00:00 2001 From: Christophe CREMON Date: Fri, 6 Jul 2012 12:01:52 +0200 Subject: [PATCH] PowerFileWatcher Documentation --- PowerFileWatcher/README | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 PowerFileWatcher/README diff --git a/PowerFileWatcher/README b/PowerFileWatcher/README new file mode 100644 index 0000000..501395d --- /dev/null +++ b/PowerFileWatcher/README @@ -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 \ No newline at end of file