-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileWatcher.ps1
More file actions
42 lines (32 loc) · 1.24 KB
/
FileWatcher.ps1
File metadata and controls
42 lines (32 loc) · 1.24 KB
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
<#
.Name
FileWatcher
.Version
0.1.0
.SYNOPSIS
Starts a new filewatcher session to monitor files within a given folder path
.DESCRIPTION
.Configurable Variables
.Requirements
- Powershell v3.0 or higher
- Module designed for Samson Media Player
.OUTPUTS
System.Management.Automation.PSObject
.Author
EZTechhelp - https://www.eztechhelp.com
.NOTES
.RequiredModules
/Modules/Write-EZLogs/Write-EZLogs.psm1
/Modules/Start-RunSpace/Start-Runspace.psm1
#>
Add-Type -AssemblyName WindowsBase
Import-Module "$PSScriptRoot\Modules\Write-EZLogs\Write-EZLogs.psm1"
Import-Module "$PSScriptRoot\Modules\EZT-FileWatcher\EZT-FileWatcher.psm1"
#----------------------------------------------
#region Start-FileWatcher Function
#----------------------------------------------
Start-EZLogs -logfile_directory 'c:\logs' -ScriptPath $PSCommandPath -Global_Log_Level 3 -StartLogWriter -wait -UseGlobalLogFile
Start-FileWatcher -FolderPath 'C:\Users\DopaDodge\OneDrive - EZTechhelp Company\Development\Repositories\EZT-MediaPlayer-Samson' -MonitorSubFolders
#----------------------------------------------
#endregion Start-FileWatcher Function
#----------------------------------------------