mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-12 14:07:20 +02:00
Updated the manuals
This commit is contained in:
@ -6,7 +6,7 @@ This PowerShell script uploads a local file to a FTP server.
|
||||
Parameters
|
||||
----------
|
||||
```powershell
|
||||
PS> ./upload-file.ps1 [[-File] <String>] [[-URL] <String>] [[-Username] <String>] [[-Password] <String>] [<CommonParameters>]
|
||||
/home/markus/Repos/PowerShell/scripts/upload-file.ps1 [[-File] <String>] [[-URL] <String>] [[-Username] <String>] [[-Password] <String>] [<CommonParameters>]
|
||||
|
||||
-File <String>
|
||||
Specifies the path to the local file
|
||||
@ -136,7 +136,7 @@ try {
|
||||
$fileStream.Dispose()
|
||||
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
"✔️ uploaded 📄$Filename to $URL in $Elapsed sec"
|
||||
"✅ uploaded 📄$Filename to $URL in $Elapsed sec"
|
||||
exit 0 # success
|
||||
} catch {
|
||||
[int]$Elapsed = $StopWatch.Elapsed.TotalSeconds
|
||||
@ -145,4 +145,4 @@ try {
|
||||
}
|
||||
```
|
||||
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of upload-file.ps1 as of 08/15/2024 09:50:55)*
|
||||
*(generated by convert-ps2md.ps1 using the comment-based help of upload-file.ps1 as of 11/08/2024 12:34:56)*
|
||||
|
Reference in New Issue
Block a user