mistake libUrlDownloadToFile on windows 7 and 8

Deploying to Windows? Utilizing VB Script execution? This is the place to ask Windows-specific questions.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

mistake libUrlDownloadToFile on windows 7 and 8

Post by jmburnod » Wed Feb 25, 2015 4:34 pm

Hi All,
One tester says me libUrlDownloadToFile fails on windows 7 and 8. :(
Fortunately it works fine on OS X and IOS :D
Is there someone who met this problem ?
Thanks
Jean-Marc
https://alternatic.ch

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: mistake libUrlDownloadToFile on windows 7 and 8

Post by Simon » Wed Feb 25, 2015 10:32 pm

This works on Win 7 for me

Code: Select all

on mouseUp
   set the defaultFolder to specialFolderPath("desktop")
   libURLDownloadToFile "http://www.example.com/index.html", "test.txt"
   put the result
end mouseUp
or are you using ftp?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: mistake libUrlDownloadToFile on windows 7 and 8

Post by jmburnod » Thu Feb 26, 2015 6:08 pm

Hi Simon,
Thanks for test.
It seems the mistake is elsewhere in my scripts.
I dont understand why it works on OS X and IOS but not on windows
are you using ftp?
No
Best regards
Jean-Marc
https://alternatic.ch

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mistake libUrlDownloadToFile on windows 7 and 8

Post by jacque » Fri Feb 27, 2015 5:45 pm

It may be a permissions problem. Are you downloading the file to a writable location?

Also, you can check the libURLStatus to see if there's an error. LibURLErrorData may also work though the dictionary says it is for the load command.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: mistake libUrlDownloadToFile on windows 7 and 8

Post by jmburnod » Fri Feb 27, 2015 6:45 pm

Thanks Jaque,
That could explain why I was able to do this installation with a PC windows 7.
Sorry for my ignorance but is it possible that specialfolderpath("documents") is not writable on windows ?
https://alternatic.ch

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mistake libUrlDownloadToFile on windows 7 and 8

Post by jacque » Fri Feb 27, 2015 7:20 pm

Documents should always be writable.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: mistake libUrlDownloadToFile on windows 7 and 8

Post by jmburnod » Sat Feb 28, 2015 11:42 am

I haven't a PC, that is some feed-backs from users of EcrireEnPictos
I use libURLStatus to send a "listZipContents" and "extractArchive" messages
This installation copy a folder 322 Mo in "documents" folder
https://alternatic.ch

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mistake libUrlDownloadToFile on windows 7 and 8

Post by jacque » Sat Feb 28, 2015 9:09 pm

See if anything in this message helps: http://www.runrev.com/pipermail/use-liv ... 77360.html
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Windows”