Hi,
I am using InetLoad twice in my code, doing something like:
InetLoad::load .... .....
...
...
...
InetLoad::load .... .....
But the second time it gives "URL Parts Error"
Inetload doesn't support calling it twice? some state information is saved on the dll?
Thank You,
Sebastian
Calling twice InetLoad gives "URL Parts Error"
2 posts
People did it earlier, so may be something is wrong in your script 😉 It's not easy to understand situation without a full sample, but may be first call result still sits in the stack? Try Pop $0 after every call to get result. This works on my comp (OK + OK status)
You can also perform few downloads in a one call. If you store some other vars in the stack use /END key at the end of InetLoad comamnd line - this stops reading from the stack.
InetLoad::load /POPUP "Cameron Diaz" "http://www.dreamgirlswallpaper.co.uk/pheonixnightskicksass/wallpaper/Cameron_Diaz/camerond04big.JPG" "$EXEDIR\cd.jpg"
Pop $0 # return value = exit code, "OK" if OK
InetLoad::load /TIMEOUT 10000 "ftp://ftp.kernel.org/pub/README" "$EXEDIR\rm.txt"
Pop $1
MessageBox MB_OK "Download Status: $0 + $1"