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:
Expand|Select|Wrap|Line Numbers
- 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.