FileCopy with a HTTPS site

Trying to do the following:
On Error Resume Next

    Set oWSHShell = CreateObject("WScript.Shell")
    strDest = oWSHShell.SpecialFolders("Desktop") & "\AIMS\AIMS.accdb"
    Set oWSHShell = Nothing
   
   FileCopy "https://my.network.com/Sec/HS/HSCS/AIMS/AIMS Database/AIMS.accdb", strDest
   'FileCopy "\\rs\PRO1\IB\ER\Work\LABS\Databases\SA\AIMS\AIMS.accdb", strDest
    
   strOpenClient = "MSAccess.exe " & q & strDest & q
   Shell strOpenClient, vbNormalFocus
    
   DoCmd.Quit

Open in new window


The commented out FileCopy works just fine.  Just when we try to copy from the https site it doesn't do anything.  No error or anything.  It just doesn't copy.
If there another command to copy from a HTTPS site?

Thanks
John
John SheehySystem Security ManagerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gustav BrockCIOCommented:
You could try the DownloadFile function here:

Show pictures directly from URLs in Access forms and reports
0
John SheehySystem Security ManagerAuthor Commented:
I will give this try and let you know.
Thanks
0
John SheehySystem Security ManagerAuthor Commented:
So after reviewing how your database and forms display/download pictures I can't see how I could implement this into my use.  I am trying to copy a file from a sharepoint site to a folder on the desktop.  Then it closes and open that file up.

I am sure there is a way.  But I am not seeing it.

Thoughts?

Tahnks
John
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Gustav BrockCIOCommented:
It's only the DownloadFile itself that will be of use for you. Just pass it the correct URL.
However, if login is required, it will not work. It needs direct access to the file at the URL.
0
Gustav BrockCIOCommented:
This, for example, works for me from Sharepoint:

? Downloadfile("https://companyname-my.sharepoint.com/personal/person_company_com/Documents/TestFolder/Sample.pdf", "c:\test\downloadedsample.pdf")

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
John SheehySystem Security ManagerAuthor Commented:
I am getting a compile error:  Expected: =

John
0
Gustav BrockCIOCommented:
Well, that was for the immediate window (Ctrl+G).

In code:

Result = Downloadfile("https://companyname-my.sharepoint.com/personal/person_company_com/Documents/TestFolder/Sample.pdf", "c:\test\downloadedsample.pdf")

Open in new window

0
John SheehySystem Security ManagerAuthor Commented:
Yep, figured that out once I hit submit.  Just tested it out and it works as intended.  Great tool.
Thank you very much.
0
Gustav BrockCIOCommented:
You are welcome!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Office

From novice to tech pro — start learning today.