如何下载dropbox文件?



这是我从其他回复中得到的一些代码:

UrlDownloadToFile, https://gist.github.com/gimoya/5821469/raw/034b2766bbcbe70e2a8e93b72d1ec8723351a8f8/Veg%C3%96K-Abk%C3%BCrzungen, hotstrings.ahk
if(ErrorLevel || !FileExist("hotstrings.ahk") ) {
msgbox, Download failed!
ExitApp
}
Run, hotstrings.ahk

我试图通过改变URL来修改它以满足我的需要,但它只是显示了这个标志:下载失败,压缩的zip文件夹无效。

如果你只是得到Dropbox文件的直接下载链接,它工作得很好:

URLDownloadToFile, % "https://www.dropbox.com/s/t1emirfeqbnu8tu/hello.txt?dl=1", % "my_cool_file.txt"

(感谢Google上这个随机示例Dropbox文件的第一个链接)

添加?dl=1得到直接链接。

最新更新