Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Internet Transfer Control
Message
From
15/03/2001 17:01:49
 
 
To
15/03/2001 11:09:29
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00485389
Message ID:
00485628
Views:
7
This is my second response. Bear with me :-)

If the site is using a non-compliant means of security, the following may work. Create a batch file called FTPGET.BAT. The contents of this file look like:

ftp -i -n -s:ftpscr ftpsite

Another file, FTPSCR (no extension) is composed of the following

user username password
get 'REMOTEFILEWITHPATH' LocalFilePathName
quit

Note the lack of caps in the username and password and all CAPS in the host file name (include the dir or dataset path as well in the name. You also need to run this script via the batch file or the FTP DOS screen will be left hanging around for the user to manually close.


>The following is my first attempt at using the Internet Transfer Control. When it gets to the EXECUTE command ... it halts with message Unable to access URL. I know the URL is correct because I highlighted it in the code and pasted it into the Address line and it worked. Any idea of what could be wrong here or suggest a next step in figuring this out ?
>
>
>
>cURL = "ftp://SomePlace.com/"; && Fictitious
>cCommand = "GET PRICE.EXE"
>oInet = createObject("InetCtls.Inet.1")
>inkey(1)
>oInet.Username = "555555"
>oInet.Password = "3333"
>oInet.RequestTimeout = 20
>oInet.Execute(cURL,cCommand)
>inkey(15)
>release oInet
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform