> I have downloaded the program and created this cfexecute. > > <cfexecute name="d:\inetpub\wwwroot\junction.exe" > arguments="d:\file_downloads > d:\inetpub\wwwroot\programs\download\" timeOut="600"></cfexecute> > > I have done this but my link looks like > > file:///d:/file_downloads/42100/42100373.exe in the status bar > > and the text below appears before the link > > Junction v1.04 - Windows junction creator and reparse point > viewer Copyright (C) 2000-2005 Mark Russinovich Systems > Internals - http://www.sysinternals.com Created: > d:\file_downloads Targetted at: > d:\inetpub\wwwroot\gateway_payer\download\ > > Lastly, I get a "Page cannot be displayed" error when I > select the link.
First, you should move junction.exe outside of your web root. There's no need to make it accessible through your web server. Second, when you use CFEXECUTE, you won't want to display the output of that. If you're using CFMX 6.1+, use the VARIABLE attribute to capture the output. Third, you will want to build a junction somewhere in your web-accessible directories that points to the directory where the files actually are. Presumably, in your above code, those files are in d:\file_downloads. So, your junction command might look something like this: junction d:\inetpub\wwwroot\programs\download d:\file_downloads Finally, it will be up to you to build the correct link in your program. The link will need to use HTTP. Presumably, that would be something like #cgi.server_name#/programs/download/#filenameinquestion# Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:239327 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

