mirror of
https://github.com/JG2401/DownloadsFileSync.git
synced 2026-08-28 20:20:11 +00:00
setup documentation complete
This commit is contained in:
22
README.md
22
README.md
@@ -1,2 +1,22 @@
|
||||
# DownloadFileSync
|
||||
# DownloadsFileSync
|
||||
Copies and groups files to a target directory for backup
|
||||
|
||||
## Setup
|
||||
|
||||
Download the powershell file and modify the following variables
|
||||
|
||||
required
|
||||
|
||||
- $destinationPath
|
||||
|
||||
optional
|
||||
|
||||
- $fileExtensions
|
||||
- $pattern (regular expression)
|
||||
- $timeSpan
|
||||
|
||||
After that, copy the following command to an administrator powershell terminal, run it and enter the requested entries.
|
||||
|
||||
```
|
||||
Register-ScheduledTask -TaskName DownloadsFileSync -User (Read-Host 'User') -Password ([Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR((Read-Host 'Password' -AsSecureString)))) -RunLevel Highest -Action (New-ScheduledTaskAction -Execute powershell -Argument "-File $((Read-Host 'Path'))") -Trigger (New-ScheduledTaskTrigger -AtStartup); Start-ScheduledTask -TaskName "DownloadsFileSync"
|
||||
```
|
||||
BIN
images/registerscheduledtask_success_example.png
Normal file
BIN
images/registerscheduledtask_success_example.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
Reference in New Issue
Block a user