You want to learn some of the functions from batch? here you can learn it I explain some of the functions for batch 1. Table of Content [hr] Table of ContentHow do I start?EchoPauseDesignInteractionI/OAuthor Notes this is the current table of content! it will be updated soon. 2. How do I start? [hr] Starting in batch pretty simple. open notepad and write batch code. saving is also pretty simple. to save it use this: Save Settings Replace [NAME] with the name of your Batch Script. 3. Echo [hr] echo is one of the most used functions in Batch. @echo off [hr] '@echo off' is almost alway's used at the Beginning from each batch script. here is a example with and without @echo off Script with '@echo off' script without '@echo off' As you can see there is a major different's between that. TIP: '@echo on' is the same but then the other way around, turning it back on. Lets start with our example program. first thing where going to do is @echo off Echo [hr] The echo functions most off you already know about. but still I´m going to explain about it. Echo actually "Prints" out a string into CMD. lets continue with our example program. we already had this @echo off now where going to add this to the example echo Welcome, to our Example Program! echo Tutorial By: sgt frankieboy TIP: Alway's use 'Pause' at the end of the batch script. if not the program will open and close. Further Explained in next Chapter. so what we should get is: our first Example! Our Final Code: @echo off echo Welcome, to our Example Program! echo Tutorial By: sgt frankieboy pause Echo. [hr] the echo. functions is pretty simple. the only thing it does is create white space between 2 lines. lets edit our Example to be this: @echo off echo Welcome, to our Example Program! echo. echo Tutorial By: sgt frankieboy echo. pause our output: Example Script with white space. You now learned about how to use the echo functions. 4. Pause [hr] The Pause function is just to pause the script. it would say: "Press any key to continue..." if you running the script it's mostly used at the end of each script. 5. Design [hr] let's change our design a little bit. from now on I will change the editing program I'm using so press your start button search for "edit" then click the program named "edit" (It has the default icon). It's also know as MS-DOS editor. now you should see a window similar to this: now write: @echo off Here is a list of menu Item's you can use: Let's run it. if you have the same as me you should see this: NOTE: it say's "Druk op een toets om door te gaan..." because I'm dutch. it means "Press any key to continue..." but what's a menu, without Interaction? 6. Interaction [hr] So what should you do when people need to enter in some details? or you want to use your menu? first we are going to add set /P C=Your Choice: if "%C%"=="1" goto Create if "%C%"=="2" goto Delete if "%C%"=="3" goto Copy if "%C%"=="4" goto Replace the set function means choose your options so you would have set /P C=[QUESTION] if the 'answer' is 1 it will goto Create etc. now. goto? it means goto that particular part of the code. The fun part is below... 7. I/O [hr] Under Construction... 8. Author Notes [hr] This tutorial is still under construction I there is some new stuff comming soon! Stay Tuned. © 2010 sgt frankieboy