Computing.Net > Forums > Programming > guide to learning batch scripting

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

guide to learning batch scripting

Reply to Message Icon

Name: starp
Date: December 15, 2008 at 01:35:41 Pacific
OS: AMD
CPU/Ram: Core 2 dual
Product: Compaq / SDFS
Comment:

Hi

where can i learn the basics of batch processing script

Thanks in advance




Sponsored Link
Ads by Google

Response Number 1
Name: lee123abc
Date: December 15, 2008 at 05:12:33 Pacific
Reply:

Google 'dos help'

Also use your command window.
start >> run >> type 'cmd' enter
then in your command window type
'if /?'
'set /?'
and by the time you are finished with those you will be well on your way.

Need any more help just send me your email address.


0

Response Number 2
Name: Judago
Date: December 15, 2008 at 22:52:50 Pacific
Reply:

That's exactly it search, read other people's scripts and search anything you don't understand. There is so much content on the subject it's scary, though off hand I can't think of any definitive tutorial, I kind of picked up what I know that way. I have found the most useful keyword is "batch". Another really good search is "nt batch commands".


Watching these forums can help a lot too, as you see so many different approaches from different people.


0

Response Number 3
Name: BatchFreak
Date: December 15, 2008 at 23:27:08 Pacific
Reply:

IF you see a command you don't understand search for "command name" command in batch file, I learned nearly everything I know through Google :p The rest I picked up through trial and error.

**CAUTION*** Do not experiment with FDISK :D

I only Batch if possible, 2000 more lines of code, oh well.


0

Response Number 4
Name: lee123abc
Date: December 16, 2008 at 05:07:54 Pacific
Reply:

::here is something nice to start off
::with... copy this to a file called
::mymenu.bat run it and read it and enjoy.

@echo off
title Template Menu
:mainmenu
cls
echo 1. Print "Test 001"
echo 2. Print "Test 002"
echo 3. Exit
set choice=
set /p choice=Type the number to make selection.
if '%choice%'=='1' goto run01
if '%choice%'=='2' goto run02
if '%choice%'=='3' goto run03
echo "%choice%" is not valid please try again
goto :end
::
:run01
cls
echo.
echo Test 001
pause>nul
goto :end
:run02
cls
echo.
echo Test 002
pause>nul
goto :mainmenu
:run03
cls
echo MainMenu will now exit... Goodbye
pause>nul
exit
:end
goto :mainmenu


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: guide to learning batch scripting

Batch Scripting Help!!! www.computing.net/answers/programming/batch-scripting-help/2980.html

MS Dos batch Script Help www.computing.net/answers/programming/ms-dos-batch-script-help/14592.html

pass parameter to batch script www.computing.net/answers/programming/pass-parameter-to-batch-script/16022.html