"Paul Ponting" <pa**********@hotmail.com> wrote in
news:br**********@hercules.btinternet.com:
Hi
Is it possible to do basic file system access within HTML?
I want to be able to do the following tasks to a known full path and
filename
Delete (with warning prompt if possible)
Open
Open containing folder
Get the files properties
The html documents is a local html file generated by a script that
searches for certain files based on a file pattern (*.tmp, *.bak,
*.wbk etc) and builds a html documents which I would like to use as a
front end to managing the files it has reported on. The html document
will not be running on a web server, only on a network drive.
Not that I think it's the best approach, but you can accomplish
what you want to do without doing "file system access within HTML".
You already have some sort of scripting provision, and you presumably
have something to render HTML. If your existing script generates
HTML that has URLs of the form
http://your.local.webserver/filetode...t?somefile.tmp
then so long as you have webserver software setup on the system
that will be using the generated HTML, where the webserver software
understands that you want it to execute the "filetodelete.script" file
and pass it the query string "somefile.tmp", then you can do it.
Currently, you are just using HTML as the means to format(i.e. markup)
the data in the report produced by the existing script. Why not use
the scripting language's features(if it has them) to interact with the
user in regards to what to do with the files, or use a different
scripting language, etc.
--
Dave Patton
Canadian Coordinator, the Degree Confluence Project
http://www.confluence.org dpatton at confluence dot org
My website:
http://members.shaw.ca/davepatton/
Vancouver/Whistler - host of the 2010 Winter Olympics