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 =-.
|