What`s the issue in this code?

Multimedia Builder

What`s the issue in this code?

Postby polartech » Fri May 12, 2017 11:08 pm

dest$ = 'C:/texts/01.txt'
source$ = 'http://www.mysite.co.uk/texts/01.txt'
SysCommand("CopyFile","source$,dest$")

-How can I grab a text file sitting on my website and overwrite a copy on my machine?

Thanks :)
polartech
 
Posts: 63
Joined: Sun Oct 31, 2010 3:29 am
Location: York, UK

Re: What`s the issue in this code?

Postby CodeHouse » Tue May 16, 2017 4:23 pm

You simply download it using the http plugin or php in mmb. What you are trying to do with the code above is to copy files but locally
CodeHouse
 
Posts: 294
Joined: Sun Aug 14, 2011 12:33 am

Re: What`s the issue in this code?

Postby CodeHouse » Tue May 16, 2017 5:03 pm

here..
Attachments
HTTP FILE DOWNLOAD.rar
(317.35 KiB) Downloaded 56 times
CodeHouse
 
Posts: 294
Joined: Sun Aug 14, 2011 12:33 am

Re: What`s the issue in this code?

Postby polartech » Thu May 18, 2017 3:01 am

Aaah, right, got it. Brilliant, thanks CodeHouse!!
polartech
 
Posts: 63
Joined: Sun Oct 31, 2010 3:29 am
Location: York, UK

Re: What`s the issue in this code?

Postby CodeHouse » Thu May 18, 2017 5:40 am

Glad :D
CodeHouse
 
Posts: 294
Joined: Sun Aug 14, 2011 12:33 am


Return to MMB

Who is online

Users browsing this forum: No registered users and 2 guests