Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / July 2008

Tip: Looking for answers? Try searching our database.

How to file the Directory path of "Temporary Internet Files".

Thread view: 
deep - 03 Jul 2008 12:57 GMT
Can any one help me how to file the Directory path of "Temporary
Internet Files"? A exe will be downloaded in that directory and I have
to run that exe file using java.
GArlington - 03 Jul 2008 13:54 GMT
> Can any one help me how to file the Directory path of "Temporary
> Internet Files"? A exe will be downloaded in that directory and I have
> to run that exe file using java.

WHY?
It sounds like an attempt to run a virus...
deep - 03 Jul 2008 14:09 GMT
Requirement is to run a host based application, downloaded from a web
site. Any idea how to do that??

> > Can any one help me how to file the Directory path of "Temporary
> > Internet Files"? A exe will be downloaded in that directory and I have
> > to run that exe file using java.
>
> WHY?
> It sounds like an attempt to run a virus...
Dave Miller - 03 Jul 2008 14:47 GMT
> Requirement is to run a host based application, downloaded from a web
> site. Any idea how to do that??

It's browser specific and potentially user set. You'd have to ID the
browser then find methods to collect it's settings. Easier would be JWS

http://java.sun.com/products/javawebstart/

Dave Miller
Java Web Hosting at:
http://www.cheap-jsp-hosting.com/
Roedy Green - 03 Jul 2008 23:10 GMT
>Can any one help me how to file the Directory path of "Temporary
>Internet Files"? A exe will be downloaded in that directory and I have
>to run that exe file using java.

Here are 5 approaches.

1. check out System.getEnv to see what is in the environment. You
could ask people to set up a pointer to it.

2. check out system properties. See
thtp://mindprod.com/applet/wassup.html

3. Most browsers let you configure or select where a download goes.
Just tell him to put it in some special place.

4. Give the user a file dialog and have him go find the file for you.

5. Use Java web start.  Convernt the native code to a DLL and include
it in the Jar. Then you need to concernyourself with where it is. I
went almost nuts trying to implement SETCLOCK as an Applat.. It is so
hard to make independent native code work in a browser independent
way.
Signature


Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com

Roedy Green - 04 Jul 2008 20:06 GMT
>Can any one help me how to file the Directory path of "Temporary
>Internet Files"? A exe will be downloaded in that directory and I have
>to run that exe file using java.

At least on Vista, even when I run as an administrator, when I try to
look in the "Temporary Internet Files"  directory I get a message that
I am don't have access.

It may be a virtual directory that points to some real directory.
I find this all quite confusing.
Signature


Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.