Hi All,
I have a requirement (that to be perfectly honest I don't fully understand) to run "nbtstat - R" from a webpage. To quote from Microsoft: The nbtstat-R command purges the name cache and reloads all #PRE entries from the LMHOSTS file. #PRE entries are the LMHOSTS name entries that are preloaded into the cache.
To give a little more information this is for an embedded webserver product we make and from what I understand once we have programmed the MAC address the nbtstat-R needs to be run to register the changes. Possibly!!.
Anyway, I have a way of doing this in Internet Explorer:
But I would really like the code to be cross browser compatible (if it is not possible I guess I will end up with a text section telling the user how to do it).
If anyone has any ideas of how I can achieve the above it would be much appreciated.
I have a requirement (that to be perfectly honest I don't fully understand) to run "nbtstat - R" from a webpage. To quote from Microsoft: The nbtstat-R command purges the name cache and reloads all #PRE entries from the LMHOSTS file. #PRE entries are the LMHOSTS name entries that are preloaded into the cache.
To give a little more information this is for an embedded webserver product we make and from what I understand once we have programmed the MAC address the nbtstat-R needs to be run to register the changes. Possibly!!.
Anyway, I have a way of doing this in Internet Explorer:
Code:
function myTry(){
oShell = new ActiveXObject("wscript.shell");
oShell.run("cmd /K nbtstat -R");
}
If anyone has any ideas of how I can achieve the above it would be much appreciated.
Comment