mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-13 14:37:19 +02:00
Updated the manuals
This commit is contained in:
@ -8,7 +8,7 @@ IMPORTANT NOTE: Make sure the target path is correct because the content gets re
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./sync-folder.ps1 [[-sourcePath] <String>] [[-targetPath] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/scripts/sync-folder.ps1 [[-sourcePath] <String>] [[-targetPath] <String>] [<CommonParameters>]
|
||||
|
||||
-sourcePath <String>
|
||||
Specifies the path to the source folder
|
||||
@ -88,7 +88,7 @@ try {
|
||||
if ($lastExitCode -gt 3) { throw 'Robocopy failed.' }
|
||||
|
||||
[int]$elapsed = $stopWatch.Elapsed.TotalSeconds
|
||||
"✔️ Synced 📂$sourcePath to 📂$targetPath in $elapsed sec"
|
||||
"✅ Synced 📂$sourcePath to 📂$targetPath in $elapsed sec"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
@ -96,4 +96,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of sync-folder.ps1 as of 08/15/2024 09:50:54)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of sync-folder.ps1 as of 11/08/2024 12:34:55)*
|
||||
|
Reference in New Issue
Block a user