> Stephen Russell wrote:
>
> You are having VFP serve up a string of HTML that GetFile.asp is going
> to display?
>
> Why screw with VFP at all here?
>
> function GetFileSizeType(WhatFile)
> set fs=Server.CreateObject("Scripting.FileSystemObject")
> file = Server.MapPath(WhatFile)
>
> set f = fs.GetFile(file) " you now have the file in f
>
Thanks for the suggestion Stephen. So should the following work to send the
file:
Function SendFile(cFileNamePath)
set fs=Server.CreateObject("Scripting.FileSystemObject")
file = Server.MapPath(cFileNamePath)
set f = fs.GetFile(file) ' you now have the file in f
Response.BinaryWrite f
End Function
This actually seems to output the file name rather than the actual file.
The next problem I can see with the above, but there might be a way around
it, is that Server.MapPath() requires a virtual path rather than a physical
one. That is a little awkward where the files are on another drive.
Nick
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/!&!aaaaaaaaaaayaaaaaaaaaoo2khh5xw1oq9etmzh8uaqijqaaeaaaagbahitbztdfoekkkyng36wbaaaaa...@associateddata.co.uk
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.