Articles

guide to learning batch scripting

December 15, 2008 at 01:35:41
Specs: AMD, Core 2 dual

Hi

where can i learn the basics of batch processing script

Thanks in advance



See More: guide to learning batch scripting

Report •


#1
December 15, 2008 at 05:12:33

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.


Report •

#2
December 15, 2008 at 22:52:50

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.


Report •

#3
December 15, 2008 at 23:27:08

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.


Report •

Related Solutions

#4
December 16, 2008 at 05:07:54

::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


Report •


Ask Question