Hi.
First task : How to download a file from internert via FoxPro
Second task : How to upload a file in Foxpro via ftp
Thanks
Hi.
First task : How to download a file from internert via FoxPro
Second task : How to upload a file in Foxpro via ftp
Thanks
Downloading and uploading file from URL
Dan Ciruli
Hi.
Nice, but still not what I was looking for. I want to get list of files from a directory on FTP for example in listbox. Then I will choose one of them to download. Download will look like a "copy to" not like explorer download. Like copying file from one place to another. I mean hidden. I want to copy a file from ftp which I coose from a listbox to for example "c:\files\" and no download screen will apear.
Thanks
Darrino
That is completely different than what you originally asked for. Why didn't you explain that in the question
You are asking for a non standard procedure that is not a normal windows behavior. You will need to write something custom. I have no idea how you would go about it.
Ted.
Chilkatsoft Has a good and free FTP Active X Control. I haven't used it extensively but it’s where I would start.
http://www.chilkatsoft.com
http://www.chilkatsoft.com/downloads.asp
Dave M.
Stephen A. Weatherford
One way to read a file is the ReadURL program from my website.
There are several ftp wrapper classes available in the Files section of http://www.universalthread.com . You can also create ftp script files and use ShellExecute() to spawn a ftp process.
Nothern
This is what I use to download a file from the web. My customers use this each day.
To download from http site use ftp. in front of the file name.
********************************************************************
*** Name.....: MENU DESIGNER - COMMON - DOWNLOAD UPDATE PROCEDURE
*** Author...: Donald J. Higgins
*** Date.....: 04/01/2006
*** Notice...: Copyright (c) 2006 Common Sense Software
*** Compiler.: Visual FoxPro 09.00.0000.3504 for Windows
*** Function.: Shell execute to the web site where the update files are located.
*** Returns..: hyperlinks to the web site
********************************************************************
MESSAGEBOX("PLEASE TAKE NOTE: Profit Trak will EXIT immediately after Download Begins." + CHR(13) + "You Must Restart Profit Trak after Unzipping the Update File",0,"Notice...")
DECLARE INTEGER ShellExecute IN shell32.dll ;
INTEGER hndWin, STRING cAction, STRING cFileName, ;
STRING cParams, STRING cDir, INTEGER nShowWin
LOCAL lcWebPage
lcWebPage = "www.crew-chief.com/dealerupdate.exe"
ShellExecute(0,"open",lcWebPage,"","",1)
** ONCE update process begins we will exit out of Profit track
CLOSE DATABASES
_screen.ActiveForm.cmdExit.click()
Please note: there are spaces that do not belong in the above code, I am not exactly sure how to remove them.
Don Higgins
www.crewchiefpro.com
Ronalld
INTEGER pCaller, ;
STRING @ szURL,;
STRING @ szFileName, ;
INTEGER dwReserved,;
INTEGER lpfnCB
Declare Integer DeleteUrlCacheEntry In wininet;
STRING lpszUrlName
DeleteUrlCacheEntry(m.lcURL)
URLDownloadToFile(0, m.lcURL, m.lcFileA, 0,0)