Solved

Run VB6 code from web file opened NOT SAVED

Posted on 2003-10-23
7
205 Views
Last Modified: 2010-04-17
I want to be able to have my VB6 code read the contents of a text file from a web site - but I want the user to choose: 'Open' the file which launches my app- NOT save the file then open.  Is the file TEMP saved in C:\Windows\TEMP directory?

Thank you in advance for any and all help.

Mark
0
Comment
Question by:MaGnuMark
  • 4
  • 2
7 Comments
 
LVL 18

Expert Comment

by:bobbit31
ID: 9608322

if you just want to show the user a webpage in your app:

reference ms internet controls under project/components, then:

WebBrowser1.navigate "<url>"
While WebBrowser1.ReadyState <> READYSTATE_COMPLETE
  DoEvents
wend
0
 

Author Comment

by:MaGnuMark
ID: 9608417
I'll try to be a little more specific.  Our web page contains a link.  When the user clicks on that link, they get a windows message "Would you like to open the file or save it to your computer?"  I need them to be able to choose 'Open' and have my app launch and read the contents of that text file.  I am able to read from the text file if I only knew were it gets temporarily saved - if infact that is how it works.

Hope the extra details helps.
Mark
0
 

Author Comment

by:MaGnuMark
ID: 9610200
Here would be a similiar example to what I'm trying to pull off - You click a web link to a .TXT file -you have the option to OPEN or SAVE the file - You click OPEN, and Notepad opens the file and displays the contents on the .TXT file.  How do I get my app to read the information (Like Notepad does) contained in that same .TXT file without first saving the file?  

Thanks for looking
Mark
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 

Author Comment

by:MaGnuMark
ID: 9614287
OK - I know where the file is saved to....C:\Documents and Settings\[UserName]\Local Settings\Temporary Internet Files\IE5.Content\{some randomly generated folder name}

Question Now - how do I get this path from the Registry.  Manually searching the Registry I found where this path is kept.  But how do I get it using VB6?

Please Help - My project is gathering dust...

Thanks
Mark
0
 
LVL 18

Accepted Solution

by:
bobbit31 earned 125 total points
ID: 9614780
does the file have a special extension? all you have to do is associate that extension w/ your program and it should automatically use your app.
0
 

Author Comment

by:MaGnuMark
ID: 10332310
Thanks for your direction bobbit31.  I ended up having to write in a file search to locate file so that it could be executed, and run my associated app.  
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
This is about my first experience with programming Arduino.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now