1 Question <----NOOB
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
1 Question <----NOOB
Hey guys,
I am trying to get it so when the user clicks button it downloads a certain file into a path such as "C:\Program Files\Server"
Ive tried using the "get" method but I don't know how to chose where to save the file. PLEASE HELP!
I am trying to get it so when the user clicks button it downloads a certain file into a path such as "C:\Program Files\Server"
Ive tried using the "get" method but I don't know how to chose where to save the file. PLEASE HELP!
Re: 1 Question <----NOOB
May be you could find the answer in this lesson:
http://lessons.runrev.com/s/lessons/m/4 ... put-output
Sorry, I can't help you farther, I'm a beginner too
Kind regards, Jean-Paul.
http://lessons.runrev.com/s/lessons/m/4 ... put-output
Sorry, I can't help you farther, I'm a beginner too

Kind regards, Jean-Paul.
Discovering LiveCode Community 6.5.2.
Re: 1 Question <----NOOB
Cheers Ill check it outatout66 wrote:May be you could find the answer in this lesson:
http://lessons.runrev.com/s/lessons/m/4 ... put-output
Sorry, I can't help you farther, I'm a beginner too![]()
Kind regards, Jean-Paul.

Re: 1 Question <----NOOB
Sorry not what I was looking for, can any 1 help?
Re: 1 Question <----NOOB
Hi.
If you are successful with the "get URL..." portion, is it just that you don't know how to save it to a file?
Look at the "open" and "write to file" commands.
Craig Newman
If you are successful with the "get URL..." portion, is it just that you don't know how to save it to a file?
Look at the "open" and "write to file" commands.
Craig Newman
Re: 1 Question <----NOOB
Hi Alex,
Try this
Best regards
Jean-Marc
Try this
Code: Select all
on mouseUp
put url "http://www.alternatic.ch/jmb/DevLiveCode/OneText.txt" into tText
ask file "Save to" with "Untitled.txt"
if it <> empty then put tText into url("File:" & it)
end mouseUp
Jean-Marc
https://alternatic.ch
Re: 1 Question <----NOOB
Code: Select all
on mouseUp
create folder "C:\Program Files\GNTool"
get url "DOWNLOADLINK"
open file "C:\Program Files\GNTool" for write
write to file
end mouseUp
also, how do I send a message with the "get url" so that once the download is complete a message comes up.
-Thanks, Im a complete newbie and Im loving how helpful the community is here.
Re: 1 Question <----NOOB
Sorry to bug but any help?
Re: 1 Question <----NOOB
Code: Select all
create folder "C:/Program Files/GNTool"
set the defaultFolder to "C:/Program Files/GNTool"
put url "http://www.blabla.com/index.html" into url "file:index.html")
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: 1 Question <----NOOB
Im trying to make it so when a user clicks the button it downloads a file and saves it in "C:\Programfiles\GNTool"Simon wrote:Is that what you are trying to do?Code: Select all
create folder "C:/Program Files/GNTool" set the defaultFolder to "C:/Program Files/GNTool" put url "http://www.blabla.com/index.html" into url "file:index.html")
Simon
Re: 1 Question <----NOOB
Well did the code I wrote work?
Simon
Oh I see I left a trailing ")"... remove that.
Simon
Oh I see I left a trailing ")"... remove that.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: 1 Question <----NOOB
It does altohugh its not for html its for a .exe fileSimon wrote:Well did the code I wrote work?
Simon
Oh I see I left a trailing ")"... remove that.
-Thanks
Re: 1 Question <----NOOB
Use
...into url "binfile:index.exe"
Simon
...into url "binfile:index.exe"
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!