title: How To Run CMD Commands In Vb6 As Administrator
body: <p>How To Run CMD Commands In VB6 As Admin.</p>
  
  <p><code>netsh wlan set hostednetwork mode=allow ssid="admin" key="admin"</code></p>
  
  <p>HOW CAN I RUN THIS COMMAND WITH ADMIN RIGHTS USING CMD.</p>
  
  <p><code>Dim sYourCommand As String</code></p>
  
  <p><code>sYourCommand = "netsh wlan set hostednetwork mode=allow ssid="admin" key="admin""</code></p>
  
  <p><code>Shell "cmd /c " &amp; sYourCommand, vbMaximizedFocus</code></p>
  
  <p>HOW CAN I RUN ABOVE COMMAND AS ADMIN privileges.</p>