Close



Keep me logged in.

Forgot your password? | Register Now

Page 2 of 2 FirstFirst 1 2
Results 11 to 18 of 18
  1. Original Post
    Bring back the smileys!
    NextGenUpdate Elite Member
    Ωhms's Avatar

    Default /**The Ultimate Batch File Coding Tutorial For Noobs**\

    Forum Thread Post:

    MIR_EGAL123's ULTIMATE BATCH FILE CODING TUTORIAL FOR NOOBS

    Hello and welcome to my tutorial. Today I am going to give you an easy to follow guide to coding batch files, which I believe is the best way to start your coding "journey". I will start with simple commands, then progress onwards until you, too, are a formidable batch file coder yourself. Continue to the next page to view the start of the tutorial.


    **Note: Right now, this is an NGU exclusive post! You will see this on no other websites, and if you do, It is not me posting it. I want to keep this exclusive to you guys only, so don't post this to other sites please.





    1 2 3 4 5 6 7 Next »
    Last edited by Ωhms; 09-12-2012 at 06:56 AM.
    Register or log in to view signatures.

  2. The Following 13 Users Say Thank You to Ωhms For This Useful Post:


  3. #11
    Cub Scout
    iPWNINu's Avatar

    Default




    Quote Originally Posted by mir_egal123 View Post
    No problem, always wanting to help an NGU bro out :bro:



    Thanks for the compliment, and I always recommend learning this first.



    Thanks, hopefully this will make the bugging stop
    Man, I wish there were ore awesome people like you around, theres tons of douchebgs here ;D
    Register or log in to view signatures.

  4. #12
    Derp
    NextGenUpdate Elite Member
    ajbinky's Avatar

    Default

    this is a great tutorial! thank yhou!
    Register or log in to view signatures.

  5. #13
    French Fries

    Default

    Nice tut man really detailed and loads of good tips
    Register or log in to view signatures.

  6. #14
    Ragdoll

    Thumbs up

    Wow this really helped me im a big noob and i under stood this now im making a lot of sick batch files and i converted it to exe but your exe converter link is broken so i googled it and found it but nice tut i like it a lot

    Note: Please update it and like add some more stuff please i want to know a lot more i googled some stuff and messed around with some stuff but its just that good i want to know how to make a serious program if you could make a tut for that please!!!
    Register or log in to view signatures.

  7. #15
    Porkey The Pig Is My Nigg
    NextGenUpdate Elite Member
    ThereThatGuy's Avatar

    Default

    Quote Originally Posted by ThatPurpleNigga View Post
    Spoiler:
    Forum Thread Post:
    Hey TPN

    A few people are asking about password protect so I figured you could add this in . I'm not like you, I can't explain shit but I will try ,you will get the jest and you can explain. lol


    So here is a basic understanding,

    CLS:Clear Screen
    @echo off:Show no "User Says"
    title: Name of the Command Prompt
    Set: Obviously set
    passWord:A random string, Can be anything as long as you keep it the same.
    Where set passWord=NGUThereThatGuy NGUThereThatGuy is the password.
    goto CHECK:Where to go after passWord has been set.

    So, Just place your code in the top of the batch file..

    Code 1:
    Code:
    cls
    @echo off
    title TTG'S Opener
    set passWord=NGUThereThatGuy
    goto CHECK
    :CHECK:Random string, Where from the "goto CHECK" from the previous statement.
    %USERNAME%: Pulls the current user logged on name.
    set /p pass: This is your string, You can change the "pass" to something els but the /p must remain for this to work.
    ="Password=>" Is the text that would be displayed

    if "%pass%"=="%passWord%" This is saying if the string "pass" is = to the original string "passWord" open the document/info, Or if wrong password go to error page.

    So part 2: Can be place anywhere together.

    Code:
    :CHECK
    echo Sup %USERNAME%:
    set /p pass="Password=> "
    if "%pass%"=="%passWord%" (GOTO OPEN) else GOTO ERROR
    :ERROR: A random string that is referring to the above coding.
    Rest is the same.

    So this would be the error page:
    Code:
    :ERROR
    cls
    echo Wrong password %USERNAME%, Try it again?
    set /p pass="Password=> "
    if "%pass%"=="%passWord%" (GOTO OPEN) else GOTO END
    :OPEN: Refers to the code 2 where to go if
    passWord was correct.
    cmd /c "info to goto/doc to open"

    So here is what this bit would look like this.

    Code 3:
    Code:
    :OPEN
    cls
    echo Right Password...
    cmd /c "C:\Users\%USERNAME%\Desktop\win.txt"
    goto END

    Just a statement to close the batch command if wrong password is typed in

    After the command/doc is closed you get this

    Code:
    :END
    cls
    echo closing...
    pause
    Final complete code


    Code:
    cls
    @echo off
    title TTG'S Opener
    set passWord=TTG
    goto CHECK
    
    :CHECK
    echo Sup %USERNAME%:
    set /p pass="Password=> "
    if "%pass%"=="%passWord%" (GOTO OPEN) else GOTO ERROR
    
    :ERROR
    cls
    echo Wrong password %USERNAME%, Try it again?
    set /p pass="Password=> "
    if "%pass%"=="%passWord%" (GOTO OPEN) else GOTO END
    
    :OPEN
    cls
    echo Right Password...
    cmd /c "C:\Users\%USERNAME%\Desktop\win.txt"
    goto END
    
    
    :END
    cls
    echo closing...
    pause

    Hope it helped you all out
    Last edited by ThereThatGuy; 01-05-2012 at 07:53 PM.
    Register or log in to view signatures.

  8. #16
    Bottom Feeder

    Default

    thank you so much
    Register or log in to view signatures.

  9. #17
    Winning.
    NextGenUpdate Elite Member
    ~SpongeBob's Avatar

    Default

    could you restore the link for the .Bat to .exe program?
    Register or log in to view signatures.

  10. #18
    French Fries

    Default

    Thank you so much i wanted to try and start coding but i never knew where to start and this really helped!!
    Register or log in to view signatures.

Page 2 of 2 FirstFirst 1 2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •