Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automating File Uploads
Message
 
 
To
18/01/2005 20:55:39
General information
Forum:
Visual FoxPro
Category:
Internet applications
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00978382
Message ID:
00978399
Views:
28
Carole,

I think the problem with IE automation is that you can't update the value of a FILE type input field from code.

You might play with the code from my website for the ReadURL function and see if you can adapt it to use the InternetWriteFile API call that is documented at http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/internetwritefile.asp

>I have a report in an Excel workbook created via automation on a nightly basis that reflects data entry into a FoxPro database up to the day before. I want to make this report available on another website, not controlled by me, but to which I have permissions to post files once I have logged in.
>
>Currently moving the file from the location where it is stored to the website where others access it is a manual process I complete whenever I think someone may be needing to look at the updated workbook. I would like the moving of this file to the other website an automatic process, so I can go on vacation! <grin>
>
>After talking to the developers of the target website, I was advised away from automating IE to move the data. Apparently they had tried something similar at one point and not met with success.
>
>Other suggestions included windows scripting host and perl script. I however have no idea how to get started with those options and could use a hint or a good reference to point me in the right direction.
>
>Any ideas how you would focus energy to this problem?
>Anyone else try to automate IE for a similar task that met with either failure or success?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform