Powershell - Download file, and send email confirming successful download
$10-30 USD
Finalizat
Data postării: aproape 4 ani în urmă
$10-30 USD
Plata la predare
Hi,
I would like to automate a specific set of tasks using Powershell.
The manual version of the task would involve me going to a specific URL once a month, and downloading an XML file containing rates of exchange.
I would then move this file to a specific folder on the network.
The URL changes every month - there is logic explanation behind the URL, which I have provided examples of below.
I could easily tell you what the URL would be in 6 months time - and if you look at the logic explanation that I have provided, you could also very easily tell me what the URL would be as well.
URL Examples (These are true examples):
07 = July // 20 = 2020
[login to view URL]
07 = June // 20 = 2020
[login to view URL]
09 = September // 19 = 2019
[login to view URL]
In order to automate this task, I would like a Powershell script to do the following.
• When the script is run, it will need to know what the current Month and Year is. This will be used when accessing the URL
• Do an HTTP status check to make sure that the URL exists. 200 = Good, anything else = Bad
If the status check = 200
• I would like the script to download the XML file (Filename should be: "Rates_Of_Exchange_{Month}{Year}.xml"
• I would then like the downloaded file to be moved to a specific network folder
(Just some generic code... moving the file to another folder - I can work out the rest)
• Send myself an email using Gmail SMTP - The Subject and Body of the Email just needs to say - "File Downloaded Successfully" and then the month and year afterwards. (This will give an indication of which URL has been downloaded)
There may be a time where I run the script a couple of times a month - in which case I would like the script to automatically overwrite the existing file (if it already exists).
If the status check <> 200
• Send myself an email using Gmail SMTP - The Subject and Body of the Email just needs to say - "URL Not Found" and then the month and year afterwards. (This will give an indication of which URL was attempted)
I hope this makes sense.
Any questions at all, please ask.
Thanks
Hi, sir! I am an experienced powershell developer with the skills necessary to do this.
I can handle the project as you like.
I can start immediately. I will give you good results.
I am a perfectionist and I will not be satisfied until you are satisfied.
We look forward to hearing from you.
Best reguards
$30 USD în 2 zile
0,0 (0 recenzii)
0,0
0,0
3 freelanceri plasează o ofertă medie de $28 USD pentru proiect