Merge pull request #2 from JG2401/documentation

Documentation
This commit is contained in:
JG2401
2024-06-27 21:20:07 +02:00
committed by GitHub
2 changed files with 26 additions and 1 deletions

View File

@@ -1,2 +1,27 @@
# DownloadFileSync
# DownloadsFileSync
Copies and groups files to a target directory for backup
## Setup
Download the powershell file and modify the following variables
required
- $sourcePath
- $destinationPath
optional
- $fileExtensions
- $pattern (regular expression)
- $timeSpan
After that, copy the following command to an administrator powershell terminal, run it and fill 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"
```
This should be your result:
![Register-ScheduledTask Success Example](images/registerscheduledtask_success_example.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB