Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: admin cr8tor  (Read 2057 times)

0 Members and 1 Guest are viewing this topic.

lordoftheplat

    Topic Starter


    Hopeful

  • teh god.
  • Thanked: 1
    admin cr8tor
    « on: March 05, 2007, 07:19:32 AM »
    hey can any1 improve this code?

    @echo off  
    color f1
    TITLE Admin Account Creation  
    echo.
    echo.
    set /p a= Set Username:
    @echo off
    cls
    echo.
    echo.
    set /p a= Set Password:
    ECHO Username: %a%
    ECHO Password: %b%
    DATE /T  
    PAUSE  
    net user %a% %b% /ADD
    net localgroup /ADD administrators %a%  
    msg * Account Creation Successfull

    zepperblood.deviantart.com

    ogelami



      Beginner
    • Ogelami
      Re: admin cr8tor
      « Reply #1 on: March 05, 2007, 12:09:28 PM »
      [highlight]@echo off  
      color 0a
      TITLE Admin Account Creation  
      echo.
      echo.
      set /p a= Set Username:
      @echo off
      cls
      echo.
      echo.
      set /p b= Set Password:
      ECHO Username: %a%
      ECHO Password: %b%
      DATE /T  
      PAUSE  
      net user %a% %b% /ADD >NUL
      net localgroup /ADD administrators %a%  
      msg * Account Creation Successfull [/highlight]
      =)  :D :D :D :D :D
      « Last Edit: March 05, 2007, 12:14:18 PM by ogelami »
      09314M!

      finnen

      • Guest
      Re: admin cr8tor
      « Reply #2 on: March 11, 2007, 03:37:31 PM »
      @echo off  
      color 0a
      TITLE Admin Account Creation  
      echo.
      echo.
      set /p a= Set Username:
      @echo off
      cls
      echo.
      echo.
      set /p b= Set Password:
      ECHO Username: %a%
      ECHO Password: %b%
      DATE /T  
      PAUSE  
      net user %a% %b% /ADD >NUL
      net localgroup /ADD administrators %a%
      set /p reply=Account Creation Successfull

      finnen

      • Guest
      Re: admin cr8tor
      « Reply #3 on: March 11, 2007, 03:43:29 PM »
      And the color chould be 0f ;D
      @echo off    
      [highlight]color 0f [/highlight]
      TITLE Admin Account Creation

      net localgroup /ADD administrators %a%
      [highlight]set /p reply=Account Creation Successfull [/highlight]

      small changes but its nicer this way

      lordoftheplat

        Topic Starter


        Hopeful

      • teh god.
      • Thanked: 1
        Re: admin cr8tor
        « Reply #4 on: March 12, 2007, 08:08:52 AM »
        ok amillion times better way
        sory for the /p a= set ursername and the u know the /p a-set password
        that was a mistake by accident lol

        @echo off  
        color f1
        TITLE Admin Account Creation  
        echo.
        echo.
        set /p a= Set Username:
        set /p b= Set Password:
        echo.
        PING Insert 7=(8-1) second delay
        echo.
        ECHO Username: %a%
        ECHO Password: %b%
        DATE /T  
        TIME /T
        pause  
        net user %a% %b% /ADD /expires:never
        net localgroup /ADD "Administrators" %a%  
        msg * Account Creation Successfull
        exit

        zepperblood.deviantart.com