How to get the OneDrive link for auto download a file?

%3CLINGO-SUB%20id%3D%22lingo-sub-1490936%22%20slang%3D%22en-US%22%3EHow%20to%20get%20the%20OneDrive%20link%20for%20auto%20download%20a%20file%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1490936%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20download%20a%20file%20from%20OneDrive%20which%20will%20be%20automatically%20download%20when%20opening%20the%20link.%26nbsp%3B%20Dropbox%20can%20do%20it.%20I%20wonder%20if%20OneDrive%20can%20do%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%2C%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1490936%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOneDrive%20for%20Business%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1496182%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20get%20the%20OneDrive%20link%20for%20auto%20download%20a%20file%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1496182%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F74422%22%20target%3D%22_blank%22%3E%40Grace%20Yin%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHey%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20you%20had%20either%3CSTRONG%3E%20%3Fdownload%3D1%3C%2FSTRONG%3E%20or%3CSTRONG%3E%20%26amp%3Bdownload%3D1%3C%2FSTRONG%3E%20to%20the%20end%20of%20the%20URL%2C%20it%20will%20just%20pop%20up%20with%20the%20save%20dialogue%2C%20if%20the%20link%20is%20set%20as%20'anyone%20can%20view'.%20If%20I%20recall%20correctly%2C%20you%20use%20%3CSTRONG%3E%26amp%3B%3C%2FSTRONG%3Edownload%3D1%20for%20Office%20files%20and%20%3CSTRONG%3E%3F%3C%2FSTRONG%3Edownload%3D1%20for%20others%2C%20like%20executables.%20Worth%20playing%20about%20with%20it%20confirm.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1507367%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20get%20the%20OneDrive%20link%20for%20auto%20download%20a%20file%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1507367%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F74084%22%20target%3D%22_blank%22%3E%40Ruairidh%20Campbell%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20reply.%20I%20tested%20and%20it%20didn't%20work.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20want%20to%20download%20executable%20file%20directly%20when%20launching%20the%20link.%26nbsp%3B%3Fdl%3D1%20works%20for%20Dropbox%20link%20but%20not%20OneDrive%20link.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1510916%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20get%20the%20OneDrive%20link%20for%20auto%20download%20a%20file%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1510916%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F74422%22%20target%3D%22_blank%22%3E%40Grace%20Yin%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20is%20the%20file%20extension%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E
Frequent Contributor

Hi,

 

I need to download a file from OneDrive which will be automatically download when opening the link.  Dropbox can do it. I wonder if OneDrive can do it.

 

Thanks,

3 Replies

@Grace Yin 

 

Hey,

 

If you had either ?download=1 or &download=1 to the end of the URL, it will just pop up with the save dialogue, if the link is set as 'anyone can view'. If I recall correctly, you use &download=1 for Office files and ?download=1 for others, like executables. Worth playing about with it confirm.

@Ru 

 

Thank you for your reply. I tested and it didn't work. 

 

I want to download executable file directly when launching the link. ?dl=1 works for Dropbox link but not OneDrive link.

 

 

 

 

@Grace Yin 

What is the file extension?