Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Black Ice + Temp Dir

Status
Not open for further replies.

fmrock

Programmer
Sep 5, 2006
510
US
I have looked around without any sucess. I just thought I would ask in this forum and see if any of you had any ideas. I am using the Black Ice ActiveX to view tiff images in the broswer window. This ActiveX calls a JS file that downloads the tiff to the users c:\test.tif.

What I am finding, is that with Vista, some users do not have the ability to save the file to the root of the C drive. I would like to use the temp dir.

I have tried both of these in the JS that calles the ActiveX

var LocalFile="c:\\test.tif";
or
var LocalFile="%TEMP%\test.tif";

Is there anyways with ASP or any other ideas on how to get th users Temp dir?
 
ASP runs server-side so it generally doesn't know very much about what is happening on the computer where the web browser is running. Actually, about the only stuff it does know is that which the browser client sends along with the HTTP Request.

I don't have the answer but I can suggest that the experts in the JavaScript forum probably have more familiarity with client-side issues, including if it is possible to read environment variables from withing client-side code.

JavaScript forum: forum216
 
Sheco,

Thanks for the help. That is what i had thought, but a little reassurance dosent hurt either.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top