I know that java is very different to javascript & jscript.
I do not really know Java and unfortunately I'm not a competent coder by any means
Ive been using (or trying to use) this but it just won't work
Code:
<script language="jscript" type="text/jscript">
/***** Original script****
{
var objShell = new ActiveXObject("Shell.Application");
objShell.ShellExecute("notepad.exe", "", "", "open", 1);
}
*/
Function EditEntry(FileName)
{
var ProgName = "Notepad.exe";
var ObjShell = new ActiveXObject("Shell.Application");
ObjShell.ShellExecute(ProgName, FileName, "", "Open", "1");
}
</script>
</head>
<body>
<form>
<input name="EditButton" type="button" id="EditButton"
onclick="EditEntry('test.txt')"
value="Edit Entry">
</form>
I also found this which actually works but I am struggling to make it work as I want it to (the .txt file is in the same folder as the html file).
Code:
<script>
var ObjShell = new ActiveXObject("WScript.Shell");
function runNotepad()
{
if (window.ActiveXObject) {
var AppParms = document.getElementById('file').value;
ObjShell.run ("notepad.exe " + AppParms, "1");
} else
alert("You browser doesn\'t support this feature");
}
</script>
</HEAD>
<BODY>
<p>
<input type="text" id="file" value="test.txt">
<input type="button" value="Run Notepad" onClick="runNotepad()">
also it is only ie and i would need to work in FireFox.
This was supposed to be a quick easy way to read info about various machines and edit the info if required without any knowledge AND to be portable eg on a stick from PC to PC hence the idea of using script/ html.
If this is possible I'd appreciate some help but if its one of those 'looks simple but by god it ain't' scenarios then we'll go back to pen n paper and to hell with technology 
Thanks
PdS
Bookmarks