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: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

mistake libUrlDownloadToFile on windows 7 and 8

Post by jmburnod »

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

Re: mistake libUrlDownloadToFile on windows 7 and 8

Post by Simon »

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: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: mistake libUrlDownloadToFile on windows 7 and 8

Post by jmburnod »

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: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: mistake libUrlDownloadToFile on windows 7 and 8

Post by jacque »

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: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: mistake libUrlDownloadToFile on windows 7 and 8

Post by jmburnod »

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: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: mistake libUrlDownloadToFile on windows 7 and 8

Post by jacque »

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: 2734
Joined: Sat Dec 22, 2007 5:35 pm
Contact:

Re: mistake libUrlDownloadToFile on windows 7 and 8

Post by jmburnod »

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: 7423
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: mistake libUrlDownloadToFile on windows 7 and 8

Post by jacque »

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