XPost: alt.comp.os.windows-10, alt.comp.os.windows-11   
   From: V@nguard.LH   
      
   Michael wrote:   
      
   > How can I edit the manpage for the Windows netsh command.   
   >   
   > Since the beginning of wireless networking I've never been able to remember   
   > the syntax for the netsh command, and worse, it's always needed when I am   
   > off the network so I can't even look it up on my laptop when I need it.   
   >   
   > The command to get the name of the Ethernet NIC is easy enough to remember.   
   > ipconfig | findstr "Ethernet adaptor"   
   >   
   > But then it gets a bit more complicated when you ask for more information.   
   > netsh interface ipv4 show config "eth0"   
   >   
   > But it's really hard to remember the syntax to set the subnet & gateway.   
   > netsh interface ipv4 set address name="eth0" static 192.168.0.2   
   255.255.255.0 192.168.0.1   
   >   
   > Worse, "/?" help doesn't really help (try it & let me know if it does).   
   > So is there a way for me to ADD that example into the "netsh /?" results?   
      
   netsh, as with many tools, gives you only top-level help if you use   
   " /?". You have to drill down to get to a directive or even   
   sub-directive to add /? to get help on the [sub]-directive, like:   
      
   netsh /?   
   netsh interface /?   
   then   
   netsh interface ipv4 /?   
   then   
   netsh interface ipv4 set /?   
   then   
   netsh interface ipv4 set address /?   
      
   You could start at the end if you know all the args you want to specify,   
   but I usually have to drill down through the help levels.   
      
   There are no man pages in Windows like there is in Linux. Help is built   
   into the program. There is the 'help' command, but that just lists some   
   DOS-mode programs.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|