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