File: test.bat.html

package info (click to toggle)
source-highlight 3.1.7-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 10,332 kB
  • ctags: 5,233
  • sloc: sh: 11,270; cpp: 10,206; ansic: 9,515; makefile: 1,865; lex: 1,200; yacc: 1,021; php: 213; perl: 211; awk: 98; erlang: 94; lisp: 90; java: 75; ruby: 69; python: 61; asm: 43; ml: 38; ada: 36; haskell: 27; xml: 23; cs: 11; sql: 8; tcl: 6; sed: 4
file content (38 lines) | stat: -rw-r--r-- 4,104 bytes parent folder | download | duplicates (8)
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
<!-- Generator: GNU source-highlight 
by Lorenzo Bettini
http://www.lorenzobettini.it
http://www.gnu.org/software/src-highlite -->
<pre><tt>@<b><font color="#000000">ECHO</font></b> OFF
<i><font color="#9A1900">REM - LABEL INDICATING THE BEGINNING OF THE DOCUMENT.</font></i>
<b><font color="#008080">:BEGIN</font></b>
<b><font color="#000000">CLS</font></b>
<i><font color="#9A1900">REM - THE BELOW LINE GIVES THE USER 3 CHOICES (DEFINED AFTER /C:)</font></i>
<b><font color="#000000">CHOICE</font></b> <font color="#990000">/</font>N <font color="#990000">/</font><font color="#FF6600">C:123</font> PICK A NUMBER <font color="#990000">(</font><font color="#993399">1</font><font color="#990000">,</font> <font color="#993399">2</font><font color="#990000">,</font> or <font color="#993399">3</font><font color="#990000">)</font><font color="#009900">%1</font>
<i><font color="#9A1900">REM - THE NEXT THREE LINES ARE DIRECTING USER DEPENDING UPON INPUT</font></i>
<b><font color="#0000FF">IF</font></b> <b><font color="#0000FF">ERRORLEVEL</font></b> <font color="#990000">==</font><font color="#993399">3</font> <b><font color="#0000FF">GOTO</font></b> THREE
<b><font color="#0000FF">IF</font></b> <b><font color="#0000FF">ERRORLEVEL</font></b> <font color="#990000">==</font><font color="#993399">2</font> <b><font color="#0000FF">GOTO</font></b> TWO
<b><font color="#0000FF">IF</font></b> <b><font color="#0000FF">ERRORLEVEL</font></b> <font color="#990000">==</font><font color="#993399">1</font> <b><font color="#0000FF">GOTO</font></b> ONE
<b><font color="#0000FF">GOTO</font></b> <b><font color="#0000FF">END</font></b>
<b><font color="#008080">:THREE</font></b>
<b><font color="#000000">ECHO</font></b> YOU HAVE PRESSED THREE
<b><font color="#0000FF">GOTO</font></b> <b><font color="#0000FF">END</font></b>
<b><font color="#008080">:TWO</font></b>
<b><font color="#000000">ECHO</font></b> YOU HAVE PRESSED TWO
<b><font color="#0000FF">GOTO</font></b> <b><font color="#0000FF">END</font></b>
<b><font color="#008080">:ONE</font></b>
<b><font color="#000000">ECHO</font></b> YOU HAVE PRESSED ONE
<b><font color="#008080">:END</font></b>

<i><font color="#9A1900">:: Renames a Text File with the Current Date as the Name</font></i>
<i><font color="#9A1900">:: The File Extension is Kept</font></i>
<i><font color="#9A1900">::</font></i>
<font color="#FF6600">C:\BATCH\DOS\XSET</font> <b><font color="#000000">CUR-DATE</font></b> <b><font color="#000000">DATE</font></b> YY<font color="#990000">-</font>MM<font color="#990000">-</font>DD
<b><font color="#000000">REN</font></b> <font color="#009900">%1</font><font color="#990000">.*</font> <font color="#990000">%</font><b><font color="#000000">CUR-DATE</font></b><font color="#990000">%.*</font>

<b><font color="#0000FF">IF</font></b> <font color="#FF0000">"</font><font color="#CC33CC">%1</font><font color="#FF0000">"</font> <font color="#990000">==</font> <font color="#FF0000">""</font> <b><font color="#000000">XCOPY</font></b> <font color="#FF6600">B:\</font><font color="#990000">*.*</font>       
<b><font color="#0000FF">IF</font></b> <b><font color="#0000FF">NOT</font></b> <font color="#FF0000">"</font><font color="#CC33CC">%1</font><font color="#FF0000">"</font> <font color="#990000">==</font> <font color="#FF0000">""</font> <b><font color="#000000">XCOPY</font></b> <font color="#FF6600">B:\</font><font color="#009900">%1</font>    
<b><font color="#000000">ECHO</font></b><font color="#990000">.</font>                            
<font color="#FF6600">C:\BATCH\DR</font>

<b><font color="#0000FF">FOR</font></b> <font color="#009900">%%F</font> IN <font color="#990000">(</font><font color="#009900">%1</font> <font color="#009900">%2</font> <font color="#009900">%3</font> <font color="#009900">%4</font> <font color="#009900">%5</font> <font color="#009900">%6</font> <font color="#009900">%7</font> <font color="#009900">%8</font> <font color="#009900">%9</font><font color="#990000">)</font> <b><font color="#0000FF">DO</font></b> <b><font color="#000000">DEL</font></b> <font color="#009900">%%F</font> 
       </tt></pre>