Adding some code to Powershell to remove value

Welcome Forums General PowerShell Q&A Adding some code to Powershell to remove value

Viewing 0 reply threads
  • Author
    Posts
    • #244436
      Participant
      Topics: 2
      Replies: 1
      Points: 29
      Rank: Member

      Hi All,

      I am not familiar with powershell at all, and i was hoping to get some guidance in my learning.

      I have a URL which comes through as part of the script to download from sharepoint and put it in a location.

      What im not sure about – is where do i put this code where i want it to strip text from a URLstring.

      the URL is http://xxx.com/yyy/file.pdf?csf=1xxxxxx

      Where in the below code would it be best to place it and what would be the best command?

      Do i use a -replace ?* or what would be the best function for this?

      n|`r","" $DownloadPathandName = $DownloadPathandName -replace "&","&" [/crayon]

       

      Apologies if this is not allowed and remove if required.

       

      Cheers

       

      • This topic was modified 1 month, 4 weeks ago by 1981gkr42. Reason: following code rules
Viewing 0 reply threads
  • You must be logged in to reply to this topic.