Forum Moderators: open
Does anyone know how to do this - in other words a link that directs the user to their own file system?
I can't just keep the html file on my computer by the way because I want to do some database accessing on the webpage.
I basically want to write a little ASP page which accesses a database with some of my personal computer content to allow me to access and browse my own files in my own way.
However, there is something call HTML Applications (HTA) [webreference.com] that may allow you to do this. It would look something like this:
<HTA:APPLICATION ID="AppRunner"
APPLICATIONNAME="AppRunner"
WINDOWSTATE="normal">
<html>
<head>
<title>...</title>
<script type="text/jscript">function runEXE()
{
var wshShell = new ActiveXObject("WScript.Shell");
wshShell.Run("file:///c:/path/to/file.exe", 1, false);
self.close();
}</script>
</head>
<body>
<script type="text/jscript">
runEXE();
</script>
</body>
HTH
certainly this will only work if your machine and the server are on the same network.
IFRAME SRC="\\127.0.0.1 or machine name\My Documents\or\the\folder\you\want\ width="100%" height="450"></IFRAME>
Also, I'd have to have my file system shared then which would be a security risk I would have thought.
--> if the server is on a different machine then yours and on your network, then you will have to share the folder. but you can constrain your sharing to only that folder.