Javascript dilema

Discussion in 'General troubleshooting' started by dongtuuyen, Jun 10, 2019.

  1. I currently am using the following script to successfully do a Download. I want this download to be moved into a specific folder lets say "C:\HTESInc".

    What do I need to add to this logic to save this download file to C:\HTESInc ?


    <script type="text/javascript">
    window.onload = function () {
    document.location = '/HTESPublish/HTESZipMe.zip';
    }
    </script>
     
  2. ComputerMan

    ComputerMan Winhost Staff

    I want to make sure I understand you correctly.

    You want to save the file locally on your computer on the C dirve? If so that's dependent of the web browser or in this case. The end user is what chooses the location of the downloaded file.
     
    Elshadriel likes this.
  3. Yes save the file locally on your computer on the C dirve, I did it. Thanks
     
    ComputerMan likes this.

Share This Page