On Mon, Aug 3, 2009 at 3:26 PM, Enquiries / Office
Admin<[email protected]> wrote:
> Does anyone have any ideas how I might achieve the following:
>
> We have an ASP webpage accessing data via OLEDB using VFP stored procedures
> to run the code to achieve this.
>
> What I now need to do is to dynamically serve a page from elsewhere on the
> network, lets call the driving page GetFile.asp.
>
>
> Now in GetFile.asp I have:
> Response.BinaryWrite(GetFileVBS("MyFileName.txt"))
>------------------------

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





-- 
Stephen Russell
Sr. Production Systems Programmer
SQL Server DBA
Web and Winform Development
Independent Contractor
Memphis TN

901.246-0159


_______________________________________________
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/[email protected]
** 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.

Reply via email to