Tamamlanmış

Powershell - Download file, and send email confirming successful download

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

Beceriler: Kabuk Betiği, XML, Powershell, Visual Basic, Yazılım Mimarisi

Daha fazlasını gör: download file website program, download file transfer php, web design restrict download file, powershell send-mailmessage multiple recipients, powershell script to send email via smtp, powershell send email gmail, powershell send-mailmessage example, powershell send email with attachment, powershell send email exchange, powershell send-mailmessage html, powershell script to send email with authentication, php form upload file send email captcha, attached file send email php, read file send email php, php upload file send email, excel visual basic zip file send email, perl script read csv file send email, download application send jar file java phone, wordpress email download failed send message, powershell download file

İşveren Hakkında:
( 9 değerlendirme ) IPSWICH, United Kingdom

Proje NO: #26382139

Seçilen:

stepanbohanov

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 b Daha Fazla

%selectedBids___i_period_sub_7% gün içinde 30%project_currencyDetails_sign_sub_9% %project_currencyDetails_code_sub_10%
(0 Değerlendirme)
0.0

Bu iş için 3 freelancer ortalamada $28 teklif veriyor

crazynightwalker

Hi! I've checked all your details carefully and I can provide a Powershell script that will do all this for you. I can do it in 24 hours! Thank you

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(90 Değerlendirme)
5.7
hk4055782

Good in powershell scripting.. Will deliver the script in 2 days meeting your requirement without any hiccups..

$25 USD in 2 gün içinde
(0 Değerlendirme)
0.0