What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Script->DownloadFile function

Script->DownloadFile function
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Script->DownloadFile function
The reason why your code always returned "Niet":

    Downloadlink = "http://juleshuls.googlepages.com/PSMChatDutch.plsc";
    Outfile = MsgPlus.ScriptFilesPath + ".plsc";

Both Downloadlink and Outfile are strings. Strings are texts, not files, not numbers, not internet links, but simply text. The computer doesn't care what the text means to you or what it should represent, for the computer it is just a bunch of meaningless characters.

If you want to the computer to know that Outfile is a bunch of characters representing a file name, then you need to tell the computer that and you should open the file with that text as parameter. This can be done like Felu showed, with the use of the FileSystemObject ActiveX object.


    if (Outfile == true)

true and false are booleans. And thus since a boolean isn't the same as text, this function will always return false.

This post was edited on 05-02-2008 at 05:46 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
05-02-2008 05:45 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script->DownloadFile function - by apex on 04-29-2008 at 07:23 PM
RE: Script->DownloadFile function - by roflmao456 on 04-29-2008 at 07:53 PM
RE: Script->DownloadFile function - by apex on 04-29-2008 at 08:07 PM
RE: Script->DownloadFile function - by Matti on 04-30-2008 at 01:28 PM
RE: Script->DownloadFile function - by apex on 05-01-2008 at 09:34 AM
RE: Script->DownloadFile function - by apex on 05-01-2008 at 09:48 AM
RE: Script->DownloadFile function - by Felu on 05-01-2008 at 10:27 AM
RE: Script->DownloadFile function - by CookieRevised on 05-02-2008 at 05:45 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On