• 0

Batch file to download files and put them in folders


Question

Hi everyone,

 

Currently on the enterprise portal (Work), we have files behind Active Directory Federation service (ADFS) and files need to be download by selecting 'Save as Target' (behind API - previously not allowed but now it is) in the Internet Explorer and manually copy pasted and the URL.

 

I want to automate it via Batch job, I have tried BITS (by Stackoverflow suggestion) and it is not working.

 

Goal (for Batch file):

 

- Create folders and sub-folders (DONE)

- Download files from the portal and put them in the relevant folders and sub-folders (STUCK)

- Rename the files as per the renaming reference

 

Appreciate, if anyone can guide. Thanks in advance.

 

 

1 answer to this question

Recommended Posts

  • 0
  On 08/10/2018 at 12:48, Zlip792 said:

Hi everyone,

 

Currently on the enterprise portal (Work), we have files behind Active Directory Federation service (ADFS) and files need to be download by selecting 'Save as Target' (behind API - previously not allowed but now it is) in the Internet Explorer and manually copy pasted and the URL.

 

I want to automate it via Batch job, I have tried BITS (by Stackoverflow suggestion) and it is not working.

 

Goal (for Batch file):

 

- Create folders and sub-folders (DONE)

- Download files from the portal and put them in the relevant folders and sub-folders (STUCK)

- Rename the files as per the renaming reference

 

Appreciate, if anyone can guide. Thanks in advance.

 

 

Expand  

Use powershell?

https://workingsysadmin.com/open-file-dialog-box-in-powershell/

This topic is now closed to further replies.