Results 1 to 14 of 14
  1. 11-22-2009, 03:30 AM
    #1

    Banned

    Expand


    • My Statistics
      Join Date
      Nov 2009
      Location
      Modding CA and Runescape section.
      Posts
      1,425
      Contest Points
      0
      Beli
      0
      Received Thanks
      498
      Beli
      0 (0 Banked)
      EZKoins
      0 (0 Banked)
    • My 2 Awards

    Default [TUT]{Batch}First Batch Script "hello world"

    Welcome to the "First Batch Script" tutorial.

    First off Open note pad. You will need this to make batch files.

    1.Getting started:

    Ok well to start of you can only have one command per line. so it would look something like;

    <example>
    @echo off
    Echo Hello world
    pause
    exit
    <example end>

    Next you will need to know what does what. look at this list to get reference for this tutoral:
    [Dear Visitor, you're restricted from viewing links until you are registered & logged on.
    Click Here To Register Today


    2. Writing your first code:

    Ok In notepad place this code below in it and save it to location. Name the file
    "helloworld.bat"(without quotations). When writing a batch file you must always add the file extention ".bat" at the end of it.

    Code:
    @echo off
    Title Hello world This is the title
    Echo Hello world!
    pause
    exit

    After makeing saving it, open it and see what it looks like.

    3. Explaining the hello world display code above:

    Ok, @echo off means that all commands are hidden. Title means set the title of the script to have the name which you have placed beside it. Echo means relay/display the text which is beside is on the CMD display window. Pause means that the script will wait till the user wants to continus to the next command line. Exit tells the window to close or end.

    4. Playing with the code:

    After understanding how it works we are going to add color, your name, and another echo line.

    Now at this point you should have somewhat of a simple understaning of the batch file and scripting. so now we are about to add color to your bach file.

    Code:
    @echo off
    Color 02
    Title Hello world This is the title
    Echo Hello world!
    pause
    exit
    Place color below the command hide. save it. Next open your file and see what it looks like. Play with the number and see what you get.

    Ater this we are going to change the title to "Hello {your name here}! This is the title!". Now add the text display command to say ANYTHING you want. then save. and open it.

    GRATSSSSSSSS!!!!!!!!!!!!!! you have now offically learned how to color a batch file, add a title, how to creat a text dislay/comment and pause for user prompt to continue. Stay on a look out for more batch guides I will write! Thanks!
    Last edited by ckw100; 04-02-2010 at 12:17 PM.

  2. The Following 3 Users Say Thank You to ckw100 For This Useful Post:

    DSblade (08-03-2010), masama (08-04-2010), trimitu (03-07-2010)

  3. 03-25-2010, 07:07 PM
    #2

    Banned

    Expand


    • My Statistics
      Join Date
      Nov 2009
      Location
      Modding CA and Runescape section.
      Posts
      1,425
      Contest Points
      0
      Beli
      0
      Received Thanks
      498
      Beli
      0 (0 Banked)
      EZKoins
      0 (0 Banked)
    • My 2 Awards

    Default Re: [TUT]{Batch}First Batch Script "hello world"

    Anyone like?

  4. 03-26-2010, 11:49 AM
    #3

    Leecher

    Expand


    • My Statistics
      Join Date
      Aug 2009
      Posts
      1
      Contest Points
      0
      Beli
      0
      Received Thanks
      0
      Beli
      0 (0 Banked)
      EZKoins
      0 (0 Banked)

    Default Re: [TUT]{Batch}First Batch Script "hello world"

    cool tanx im new here

  5. 03-26-2010, 01:07 PM
    #4

    Super Noob

    Expand

    tojba's Avatar
    • My Statistics
      Join Date
      Jul 2009
      Posts
      49
      Contest Points
      0
      Beli
      0
      Received Thanks
      2
      Beli
      0 (0 Banked)
      EZKoins
      0 (0 Banked)

    Default Re: [TUT]{Batch}First Batch Script "hello world"

    very nice guide maybe make an other 1 with more options?

  6. 03-26-2010, 03:18 PM
    #5

    Banned

    Expand


    • My Statistics
      Join Date
      Nov 2009
      Location
      Modding CA and Runescape section.
      Posts
      1,425
      Contest Points
      0
      Beli
      0
      Received Thanks
      498
      Beli
      0 (0 Banked)
      EZKoins
      0 (0 Banked)
    • My 2 Awards

    Default Re: [TUT]{Batch}First Batch Script "hello world"

    Quote Originally Posted by tojba
    [Dear Visitor, you're restricted from viewing links until you are registered & logged on.
    Click Here To Register Today
    very nice guide maybe make an other 1 with more options?
    I will as soon as I can get some spare time. =D

  7. 04-02-2010, 05:21 AM
    #6

    The New Guy

    Expand


    • My Statistics
      Join Date
      Jul 2009
      Posts
      10
      Contest Points
      0
      Beli
      0
      Received Thanks
      0
      Beli
      0 (0 Banked)
      EZKoins
      0 (0 Banked)

    Default Re: [TUT]{Batch}First Batch Script "hello world"

    Very nice guide hope you make more (btw its saving not saveing)

  8. 04-02-2010, 12:17 PM
    #7

    Banned

    Expand


    • My Statistics
      Join Date
      Nov 2009
      Location
      Modding CA and Runescape section.
      Posts
      1,425
      Contest Points
      0
      Beli
      0
      Received Thanks
      498
      Beli
      0 (0 Banked)
      EZKoins
      0 (0 Banked)
    • My 2 Awards

    Default Re: [TUT]{Batch}First Batch Script "hello world"

    Quote Originally Posted by ggboi
    [Dear Visitor, you're restricted from viewing links until you are registered & logged on.
    Click Here To Register Today
    Very nice guide hope you make more (btw its saving not saveing)
    I am indeed planning to make more. Thanks, it was a typo. =D

  9. 04-03-2010, 06:29 AM
    #8

    The New Guy

    Expand


    • My Statistics
      Join Date
      Jul 2009
      Posts
      10
      Contest Points
      0
      Beli
      0
      Received Thanks
      0
      Beli
      0 (0 Banked)
      EZKoins
      0 (0 Banked)

    Default Re: [TUT]{Batch}First Batch Script "hello world"

    Haha i thought so

  10. 07-21-2010, 07:06 AM
    #9

    The New Guy

    Expand

    Dark Angel's Avatar
    • My Statistics
      Join Date
      Dec 2009
      Posts
      24
      Contest Points
      0
      Beli
      0
      Received Thanks
      1
      Beli
      0 (0 Banked)
      EZKoins
      0 (0 Banked)

    Default Re: [TUT]{Batch}First Batch Script "hello world"

    ye this is like new new new batch xD
    but i showed to one of my friends who didnt know about batch and he said it helped him
    i learned the hard way..... source codes xD
    ye nice work well done!

    When i was born planet Earth rejoiced...


    Click here to feed me a noob!


    if i helped u plz click thx button!

  11. 08-03-2010, 08:25 PM
    #10

    The New Guy

    Expand


    • My Statistics
      Join Date
      Nov 2009
      Posts
      20
      Contest Points
      0
      Beli
      0
      Received Thanks
      0
      Beli
      0 (0 Banked)
      EZKoins
      0 (0 Banked)

    Default Re: [TUT]{Batch}First Batch Script "hello world"

    Very easy to know, but will help noobs out Nice guide

  12. 08-04-2010, 01:57 AM
    #11

    Super Noob

    Expand

    masama's Avatar
    • My Statistics
      Join Date
      Jun 2010
      Location
      Beneath your cold jaded eyes.
      Posts
      38
      Contest Points
      0
      Beli
      0
      Received Thanks
      4
      Beli
      0 (0 Banked)
      EZKoins
      0 (0 Banked)

    Default Re: [TUT]{Batch}First Batch Script "hello world"

    Thanks, was very interesting. I learned how to make a batch file!

    (I'm a tech-tard, as you will soon realise.)

  13. 08-19-2010, 12:00 AM
    #12

    The New Guy

    Expand

    LolDudev5's Avatar
    • My Statistics
      Join Date
      Jul 2010
      Posts
      12
      Contest Points
      0
      Beli
      0
      Received Thanks
      1
      Beli
      0 (0 Banked)
      EZKoins
      0 (0 Banked)

    Default Re: [TUT]{Batch}First Batch Script "hello world"

    HELP ME HELP ME HELP ME HELP ME HELP HELP ME HELP ME HELP ME HELP ME HELP HELP ME HELP ME HELP ME HELP ME HELP
    HOW CAN I USE CORRECT THIS COMMANDE?:"move 1.txt c:/PROGRAM FILES/"
    there is space between "program" and "files" and it cant move it there! i tried _ , - dident helped!
    HELP ME HELP ME HELP ME HELP ME HELP HELP ME HELP ME HELP ME HELP ME HELP HELP ME HELP ME HELP ME HELP ME HELP

    ---------- Post added 08-19-2010 at 02:00 AM ---------- Previous post was 08-18-2010 at 03:23 PM ----------

    Can you please help me olready?!

  14. 08-19-2010, 04:20 AM
    #13

    Informed Hacker

    Expand

    TheOrigin's Avatar
    • My Statistics
      Join Date
      Jul 2010
      Posts
      139
      Contest Points
      0
      Beli
      0
      Received Thanks
      13
      Beli
      0 (0 Banked)
      EZKoins
      0 (0 Banked)

    Default Re: [TUT]{Batch}First Batch Script "hello world"

    alright calm down.
    open explorer (or my computer) navigate to cprogramfiles\ drag and drop.
    if asking for user permission click yes.

  15. 08-30-2010, 08:36 AM
    #14

    Leecher

    Expand


    • My Statistics
      Join Date
      Jun 2010
      Posts
      8
      Contest Points
      0
      Beli
      0
      Received Thanks
      0
      Beli
      0 (0 Banked)
      EZKoins
      0 (0 Banked)

    Default Re: [TUT]{Batch}First Batch Script "hello world"

    basically basic was the first language i spoke

Posting Permissions

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