-
Notifications
You must be signed in to change notification settings - Fork 0
/
learnBatch.bat
68 lines (62 loc) · 907 Bytes
/
learnBatch.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
@echo off
echo Hello world!
echo This is a Batch file.
:: Batch files can end in either .BAT or .CMD and can only be run in the Command Prompt (cmd.exe) in Windows.
set printString=This string is a variable.
echo %printString%
set /A a = 5
set /A b = 6
set /A c = %a% + %b%
:: /A switch is used for defining numeric values
::===================
::ASSOC -
::CD -
::CLS -
::COPY -
::DEL -
::DIR -
::DATE -
::ECHO -
::EXIT -
::MD -
::MOVE
::PATH -
::PATH -
::PAUSE -
::PROMPT -
::RD -
::REN -
::REM -
::START -
::TIME -
::TYPE -
::VOL -
::ATTRIB -
::CHKDSK -
::CHOICE -
::CMD -
::COMP -
::CONVERT -
::DRIVERQUERY -
::EXPAND -
::FIND -
::FORMAT -
::HELP -
::IPCONFIG -
::LABEL -
::MORE -
::NET -
::PING -
::SHUTDOWN -
::SORT -
::SUBST -
::SYSTEMINFO -
::TASKKILL -
::TASKLIST -
::XCOPY -
::TREE -
::FC -
::DISKPART -
::TITLE -
::SET -
::===================