dimanche 4 octobre 2020

IIS page that displays a CSV file on disk

I have a need to create an IIS page that displays on port 8080 with a very simple function: when you go to that page, it reads a CSV in the site folder and displays that on the page. I don't care about dynamically updating (I can refresh the page if the CSV changes. A PowerShell will populate the CSV periodically with diagnostic information and IIS is already running on the server so I just want to be able to piggyback on that web server.

I think/hope this should not be too complex (I have done similar in the past with node.js but it is impossible to install that on this server. I have been googling for an answer to this for quite a while and come up with nothing so would greatly appreciate some pointers on this (it would actually be very useful for many situations I'm hoping). I think this might require ASP.NET (??) so have added that as a tag (though I am not sure: I just want a simple static page that reads/displays a CSV from disk whenever it is opened/refreshed).




Aucun commentaire:

Enregistrer un commentaire