SotG Caboose Posted May 19, 2009 Report Posted May 19, 2009 Can anyone tell me how to convert batch file code to VB8 console code?
miinaturvat Posted May 19, 2009 Report Posted May 19, 2009 You use common sense... There can't be any batch file commands that can't be easily understood and changed into anything else. Are you trying to convert anything in particular?
ixGAMEOVERxixx Posted June 24, 2009 Report Posted June 24, 2009 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)
Dark Slipstream Posted June 28, 2009 Report Posted June 28, 2009 Try Gameover's (My) approach above, see if it works and reply please. Moved to Computer Support.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now