Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
MS-DOS Batch Script Guide - Script Language, Syntax & Examples

MS-DOS Batch Script Guide - Script Language, Syntax & Examples

Ratings: (0)|Views: 986|Likes:
Published by MechDR
Explains how to write MS-DOS batch scripts.
Explains how to write MS-DOS batch scripts.

More info:

Categories:Types, Research
Published by: MechDR on Mar 10, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

12/16/2013

pdf

text

original

 
MS-DOS B
ATCH
S
CRIPT
G
UIDE
S
CRIPT
L
ANGUAGE
, S
YNTAX AND
E
XAMPLES
C
OVERS SCRIPT WRITING IN
MS-DOS 5, MS-DOS 6.22, W
INDOWS
95,W
INDOWS
98
AND
(B
ASE
-C
ONCEPTS FOR 
) W
INDOWS
 NT 4.0
V
ERSION
1.1
 
MS-DOS B
ATCH
S
CRIPT
W
RITING
G
UIDE
V
ERSION
1.0 | J
ASE
T. W
OLFE
- D
X
21
 
(
JASE
 _ 
T
 _ 
WOLFE
@
MSN
.
COM
)1
T
ABLE OF
C
ONTENTS
VARIABLES IN SCRIPT...............................................................................................................................................................3
I
 NTRINSIC
V
ARIABLES
.................................................................................................................................................................3C
OMMAND
L
INE
V
ARIABLES
.....................................................................................................................................................3E
 NVIRONMENTAL
V
ARIABLES
...................................................................................................................................................4FOR V
ARIABLES
...........................................................................................................................................................................5
ERRORLEVEL.................................................................................................................................................................................7INNER-SCRIPT SYNTAX.............................................................................................................................................................9
L
ABELS
...........................................................................................................................................................................................9
INTRINSIC COMMANDS...........................................................................................................................................................10
@..................................................................................................................................................................................................10<, >
AND
>> (R 
EDIRECTION
)....................................................................................................................................................10| (P
IPES
)........................................................................................................................................................................................12FOR..............................................................................................................................................................................................12IF...................................................................................................................................................................................................14 NUL..............................................................................................................................................................................................15P
AUSE
...........................................................................................................................................................................................16REM (R 
EMARK 
)..........................................................................................................................................................................16
COMMAND INTERPRETER COMMANDS............................................................................................................................17
CALL............................................................................................................................................................................................17CD.................................................................................................................................................................................................18DIR...............................................................................................................................................................................................18ECHO...........................................................................................................................................................................................19GOTO...........................................................................................................................................................................................20
ADDITIONAL MS-DOS UTILITIES..........................................................................................................................................22
FIND.EXE....................................................................................................................................................................................22MOVE.EXE..................................................................................................................................................................................22XCOPY.EXE................................................................................................................................................................................23
FUNCTIONS AND OBJECTS....................................................................................................................................................25
“VOID” F
UNCTIONS
..................................................................................................................................................................25“V
ALUE
” F
UNCTIONS
................................................................................................................................................................26
 
MS-DOS B
ATCH
S
CRIPT
W
RITING
G
UIDE
V
ERSION
1.0 | J
ASE
T. W
OLFE
- D
X
21
 
(
JASE
 _ 
T
 _ 
WOLFE
@
MSN
.
COM
)2
RECURSION..................................................................................................................................................................................28NOTES.............................................................................................................................................................................................30
C
ALLING
F
ILES IN
S
UB
-
FOLDERS
............................................................................................................................................30

Activity (2)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->