Get File Name from webpage

Welcome Forums General PowerShell Q&A Get File Name from webpage

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
2 years, 2 months ago.

  • Author
    Posts
  • #54304

    Participant
    Points: 0
    Rank: Member

    Hi There,

    I am working on downloading file from a webpage. On click of link a javascript code is executed and file download starts.
    So far I am able to download the file with

     
    $ie.getElementById('ctl00_ph1_rv_up_tcPM_CtrlTabHeader_fvReq_ctlFileID_ctlFileID_cmdName').click()
    

    Is there a way that I can capture the file name which is being downloaded here.

    Thanks.

  • #54310

    Participant
    Points: 21
    Rank: Member

    You don't need to "capture" the file name if you've already figured out how to download it then the filename is most likely listed in the directory it was downloaded to.

The topic ‘Get File Name from webpage’ is closed to new replies.