GUI Password/account reset

Posted on 2006-04-02
Last Modified: 2010-04-07
I need help with some code. I dont know how to code for text box input.

I have a form that has a text box for the command, username, password and /domain

Example from a command line.
C:\>net user chris.miller A123@45b /domain

The only box that will be different is the username.

How do I code this?
Question by:CMILLER
    LVL 37

    Accepted Solution


    Private Sub Command1_Click()
        If(Text1.Text <> "") Then
            Shell "NET USER " & Text1.Text & " A123@45b /domain"
        End If
    End Sub

    LVL 9

    Expert Comment

    by:Naveen Swamy

    Author Comment

    mgh mgharish,

    Thanks, I have also posted another question that has to do with this one.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
    This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    6 Experts available now in Live!

    Get 1:1 Help Now