Hi again,

I've set my MIME type to load the files in Ultraedit on the client from the 
server.

<cfset FileName = #ListLast(url.filename, "\")#>
<cfset DirPath = #Left(url.filename, Evaluate(Len(url.filename) - 
len(FileName) - 1))#>
<cfset sr1 = #REReplaceNoCase(DirPath,"\\","/","ALL")#>
<cfset sr2 = #REReplaceNoCase(sr1,"[A-Z]:","file:\\z:")#>
<cfset myPath = #REReplaceNoCase(sr2,"books/","")#>

Here is the output from the following variables:

myPath = file:\\z:/deleteme
FileName = test.dat

Below is an anchor that when clicking opens the file in UltraEdit no problem.

<a href="#mypath#/#FileName#">Open #FileName#</a>

How can I make this "automatic" without having the click on the link?

This is a intranet application only.





+-----------------------------------------------------------------------------------+ 

Philip Humeniuk
[EMAIL PROTECTED]
[EMAIL PROTECTED]
+------------------------------------------------------------------------------------+


______________________________________________________________________
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to