Differences

This shows you the differences between the selected revisions of the page.

2017-10-04 2017-10-04
using variable expansion in strings in powershell (martin) code wrapping for new design (martin)
Line 83: Line 83:
        {         {
            # Remove suffix             # Remove suffix
-            $finalName = $transfer.Destination.SubString(0, $transfer.Destination.Length - $suffix.Length) +            $finalName = 
-            Write-Host "Renaming uploaded file $($transfer.Destination) to final name $finalName"+ ···············$transfer.Destination.SubString(0, $transfer.Destination.Length - $suffix.Length) 
 +            Write-Host "Renaming uploaded file $($transfer.Destination) to $finalName"
            # Rename uploaded file to its final name             # Rename uploaded file to its final name
            $session.MoveFile($transfer.Destination, $finalName)             $session.MoveFile($transfer.Destination, $finalName)

Last modified: by martin