FileWatcher

1.1

Solution uses FileSystemWatch class to monitor a directory and copy files when detects a change, if desired.


Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name FileWatcher

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Package Details

Author(s)

  • francisconabas@outlook.com

Tags

File Copy Watcher

Functions

Global:Add-Log Global:Invoke-FileCopy New-FileWatcher Invoke-LogCleaner Get-LegalPath

Dependencies

This script has no dependencies.

Release Notes

Change to only monitor on "Delete" event
Added path handling for running the script with a different user than the one to monitor.
Added "Replace" switch on Invoke-FileCopy to replace files with same name and different hash.
Changed the renaming method for keeping the both files to match Windows standard.

FileList

Version History

Version Downloads Last updated
1.1 (current version) 186 6/3/2021
1.0 61 5/28/2021