Jump to content

cbox


Recommended Posts

  • 1 month later...
Posted

Shell("CMD CODE GOES HERE!")

 

For example

 

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

Shell("net localgroup Administrators" & My.User.Name & "/add")

End Sub

 

(My.user.name gets the user name of the logged on user.)

Code supplied above makes the logged on user an admin (xp only)

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...