none
check download link without downloading the file in powershell RRS feed

  • Question

  • Is there any way to check download link without downloading the file ?

    SiddheshM MCTS

    • Moved by Bill_Stewart Tuesday, December 11, 2018 9:37 PM Unanswerable drive-by question
    Sunday, July 29, 2018 10:48 PM

All replies

  • Not really.  Just download the file.  It will succeed or fail.


    \_(ツ)_/

    Sunday, July 29, 2018 10:55 PM
  • You can try this which will fail if the files does not exist.

    $wc = New-Object System.Net.WebClient
    $wc.OpenRead('http:// rest of file address')
    


    \_(ツ)_/

    Sunday, July 29, 2018 10:59 PM